Commit 788bcaa1 authored by Jérome Perrin's avatar Jérome Perrin

BusinessTemplate: export to old bt format

parent 458cef67
......@@ -825,6 +825,8 @@ class ObjectTemplateItem(BaseTemplateItem):
bta.addObject(obj, name=key, ext='.py')
else:
try:
if obj.__class__.__name__ not in ('Test Component', 'Extension Component', 'Document Component'):
raise KeyError("use old format")
extension, unicode_data, record_id = \
SEPARATELY_EXPORTED_PROPERTY_DICT[obj.__class__.__name__]
except KeyError:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment