def import_(self, import_context, subdir, root=False): """ See IFilesystemImporter """ FolderishExporterImporter.import_(self, import_context, subdir, root) self.encoding = import_context.getEncoding() if import_context.shouldPurge(): self._purgeContext() data = import_context.readDataFile("%s/criteria.xml" % self.context.getId(), subdir) if data is not None: dom = parseString(data) root = dom.firstChild assert root.tagName == self._ROOT_TAGNAME self._updateFromDOM(root)
def import_(self, import_context, subdir, root=False): """ See IFilesystemImporter """ FolderishExporterImporter.import_(self, import_context, subdir, root) self.encoding = import_context.getEncoding() if import_context.shouldPurge(): self._purgeContext() data = import_context.readDataFile( '%s/criteria.xml' % self.context.getId(), subdir) if data is not None: dom = parseString(data) root = dom.firstChild assert root.tagName == self._ROOT_TAGNAME self._updateFromDOM(root)
def import_(self, import_context, subdir, root=False): """ See IFilesystemImporter. """ FolderishExporterImporter.import_(self, import_context, subdir, root)
def import_(self, import_context, subdir, root=False): """ See IFilesystemImporter. """ FolderishExporterImporter.import_(self, import_context, subdir, root)