diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2015-10-19 18:03:52 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2015-10-19 18:03:52 +0200 | 
| commit | 87afa869477c69bbb3c36083fea076e47d565d4c (patch) | |
| tree | 3ca1c92883f0c8962fb439c46f44fcf0a677d741 /ishtar_common/models.py | |
| parent | ab3d757dc4bf17c127644fad185979a630ad6240 (diff) | |
| download | Ishtar-87afa869477c69bbb3c36083fea076e47d565d4c.tar.bz2 Ishtar-87afa869477c69bbb3c36083fea076e47d565d4c.zip  | |
Imports: create fake importer on database for specific importers
Diffstat (limited to 'ishtar_common/models.py')
| -rw-r--r-- | ishtar_common/models.py | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 51cf1096f..09ce9aba5 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1457,6 +1457,7 @@ IMPORTER_TYPES = (      ('YearFormater', _(u"Year")),      ('StrToBoolean', _(u"String to boolean")),      ('FileFormater', pgettext_lazy("filesystem", u"File")), +    ('UnknowType', _(u"Unknow type"))  )  IMPORTER_TYPES_DCT = { @@ -1531,6 +1532,8 @@ class FormaterType(models.Model):              return DateFormater(self.options, **kwargs)          elif self.formater_type == 'StrToBoolean':              return StrToBoolean(**kwargs) +        elif self.formater_type == 'UnknowType': +            return          else:              return IMPORTER_TYPES_DCT[self.formater_type](**kwargs)  | 
