src/pyams_thesaurus/zmi/thesaurus.py
changeset 48 e10d9a6040f9
parent 40 2a604c0cdf0e
child 49 0179e2ee6a1e
equal deleted inserted replaced
47:e5d399e80103 48:e10d9a6040f9
   489 
   489 
   490     configuration = None
   490     configuration = None
   491     exporter = None
   491     exporter = None
   492 
   492 
   493     def createAndAdd(self, data):
   493     def createAndAdd(self, data):
       
   494         data = data.get(self, data)
   494         configuration = self.configuration = ThesaurusExporterConfiguration(data)
   495         configuration = self.configuration = ThesaurusExporterConfiguration(data)
   495         exporter = self.exporter = get_utility(IThesaurusExporter, name=configuration.format)
   496         exporter = self.exporter = get_utility(IThesaurusExporter, name=configuration.format)
   496         return exporter.export(self.context, configuration)
   497         return exporter.export(self.context, configuration)
   497 
   498 
   498 
   499