Updated data extraction in creation form
authorThierry Florac <thierry.florac@onf.fr>
Wed, 07 Mar 2018 16:12:14 +0100
changeset 48 e10d9a6040f9
parent 47 e5d399e80103
child 49 0179e2ee6a1e
Updated data extraction in creation form
src/pyams_thesaurus/zmi/thesaurus.py
--- a/src/pyams_thesaurus/zmi/thesaurus.py	Wed Mar 07 16:11:23 2018 +0100
+++ b/src/pyams_thesaurus/zmi/thesaurus.py	Wed Mar 07 16:12:14 2018 +0100
@@ -491,6 +491,7 @@
     exporter = None
 
     def createAndAdd(self, data):
+        data = data.get(self, data)
         configuration = self.configuration = ThesaurusExporterConfiguration(data)
         exporter = self.exporter = get_utility(IThesaurusExporter, name=configuration.format)
         return exporter.export(self.context, configuration)