Ejemplo n.º 1
0
    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)
Ejemplo n.º 2
0
    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)
Ejemplo n.º 4
0
 def import_(self, import_context, subdir, root=False):
     """ See IFilesystemImporter.
     """
     FolderishExporterImporter.import_(self, import_context, subdir, root)