# Path: mtr/sync/lib/manager.py
# class Manager(BaseManager):
#     def convert_value(self, value, field, export=False, action=None):
#     def processor_choices(self):
#     def dataset_choices(self):
#     def action_choices(self):
#     def converter_choices(self):
#     def make_processor(self, settings, from_extension=False):
#     def export_data(self, settings, data=None):
#     def export_data_inline(self, **settings):
#     def import_data_inline(self, **settings):
#     def filter_dataset(self, settings, dataset=None):
#     def prepare_export_dataset(self, settings):
#     def prepare_export_data(self, processor, queryset):
#     def prepare_handlers(self, key_name, processor, model, context=None):
#     def prepare_context(self, settings, path):
#     def prepare_import_data(self, processor, model):
#     def import_data(self, settings, path=None):
#     def prepare_import_dataset(self, settings, processor, model, fields):
#     def model_data(self, settings, processor, model, fields):
# 
# Path: mtr/sync/translation.py



from decimal import Decimal
from django.utils.six import text_type
from django.utils.encoding import smart_text
from .manager import manager
from ..translation import gettext_lazy as _
            return value.split(',')
    return [value]


@manager.register('converter', label=_('Boolean'))
def boolean(value, action):
    if isinstance(value, str):
        if value.isdigit():
            value = int(value)
    elif not isinstance(value, int):
        value = 0
    return bool(value)


@manager.register('converter', label=_('File path'))
def filepath(value, action):
    if value:
        return value.path
    else:
        return value


@manager.register('converter', label=_('Integer'))
def integer(value, action):
    if value:
        return int(value)
    else:
        return value



# Path: mtr/sync/lib/manager.py
# class Manager(BaseManager):
#     def convert_value(self, value, field, export=False, action=None):
#     def processor_choices(self):
#     def dataset_choices(self):
#     def action_choices(self):
#     def converter_choices(self):
#     def make_processor(self, settings, from_extension=False):
#     def export_data(self, settings, data=None):
#     def export_data_inline(self, **settings):
#     def import_data_inline(self, **settings):
#     def filter_dataset(self, settings, dataset=None):
#     def prepare_export_dataset(self, settings):
#     def prepare_export_data(self, processor, queryset):
#     def prepare_handlers(self, key_name, processor, model, context=None):
#     def prepare_context(self, settings, path):
#     def prepare_import_data(self, processor, model):
#     def import_data(self, settings, path=None):
#     def prepare_import_dataset(self, settings, processor, model, fields):
#     def model_data(self, settings, processor, model, fields):
# 
# Path: mtr/sync/translation.py



# Path: mtr/sync/lib/converters.py
from decimal import Decimal
from django.utils.six import text_type
from django.utils.encoding import smart_text
from .manager import manager
from ..translation import gettext_lazy as _

            return value.split(',')
    return [value]


@manager.register('converter', label=_('Boolean'))
def boolean(value, action):
    if isinstance(value, str):
        if value.isdigit():
            value = int(value)
    elif not isinstance(value, int):
        value = 0
    return bool(value)


@manager.register('converter', label=_('File path'))
def filepath(value, action):
    if value:
        return value.path
    else:
        return value


@manager.register('converter', label=_('Integer'))
def integer(value, action):
    if value:
        return int(value)
    else:
        return value



@manager.register('converter', label=_('None'))