src/pyams_thesaurus/zmi/thesaurus.py
changeset 48 e10d9a6040f9
parent 40 2a604c0cdf0e
child 49 0179e2ee6a1e
--- 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)