class MyExportMapper(ExportMapper): direct = [('street', 'out_street'), (none('in_t'), 'out_t'), (none(convert('in_f', bool)), 'out_f')] @changed_by('name', 'city') @mapping def name(self): pass @changed_by('email') @mapping def email(self): pass def no_decorator(self): pass
class MyMapper(ImportMapper): direct = [(none(convert('in_f', bool)), 'out_f'), (none(convert('in_t', bool)), 'out_t')]
class MyMapper(ImportMapper): direct = [(none('in_f'), 'out_f'), (none('in_t'), 'out_t')]