def __init__(self,
              id=CONTACT_CATALOG,
              title='',
              vocab_id=None,
              container=None):
     """We hook up the brains now"""
     ZCatalog.__init__(self, id, title, vocab_id, container)
    def __init__(self, id='Catalog'):
        self.__name__ = id
        self.id = id

        ZCatalog.__init__(self, self.getId())

        self.addIndex('allowedRolesAndUsers', 'KeywordIndex')
Beispiel #3
0
    def __init__(self):
        ZCatalog.__init__(self, self.getId())

        if not hasattr(self, 'Vocabulary'):
            # As of 2.6, the Catalog no longer adds a vocabulary in itself
            from Products.PluginIndexes.TextIndex.Vocabulary import Vocabulary
            vocabulary = Vocabulary('Vocabulary', 'Vocabulary', globbing=1)
            self._setObject('Vocabulary', vocabulary)

        self._initIndexes()
Beispiel #4
0
    def __init__(self):
        ZCatalog.__init__(self, self.id)

        self.setup_lexicons()
        self.setup_indexes()
        self.setup_metadata()

        # the catalog needs to be cleared after setting up everything
        # or subtle errors will appear (like print failing on brains)
        self._catalog.clear()
        self._catalog.updateBrains()
Beispiel #5
0
    def __init__(self, FULLTEXT=False):
        """
        """
        self.no_refresh = True
        ZCatalog.__init__(self, self.getId())
        self._catalog = PlominoCatalog()
        # TODO: use TextindexNG3
        #lexicon = PLexicon('plaintext_lexicon', '', Splitter(), CaseNormalizer(), StopWordRemover())
        lexicon = PLexicon('plaintext_lexicon', '', Splitter(),
                           CaseNormalizer())
        self._setObject('plaintext_lexicon', lexicon)
        #self.createFieldIndex('Form', 'SELECTION')
        #self.createFieldIndex('getPlominoReaders', 'SELECTION')
        self.addIndex('Form', "FieldIndex")
        self.addIndex('id', "FieldIndex")
        self.addColumn('id')
        self.addIndex('getPlominoReaders', "KeywordIndex")

        if FULLTEXT:
            self.createFieldIndex('SearchableText', 'RICHTEXT')
        self.no_refresh = False
 def __init__(self, id=CONTACT_CATALOG, title='', vocab_id=None, container=None):
     """We hook up the brains now"""
     ZCatalog.__init__(self, id, title, vocab_id, container)
Beispiel #7
0
 def __init__(self, id, title='', vocab_id=None, container=None):
     """We hook up the brains now"""
     ZCatalog.__init__(self, id, title, vocab_id, container)
     self._catalog = ReferenceBaseCatalog()
Beispiel #8
0
 def __init__(self):
     ZCatalog.__init__(self, self.getId())
     warn(
         'CatalogTool._initIndexes is deprecated and will be removed in '
         'CMF 2.0.', DeprecationWarning)
     self._initIndexes()
Beispiel #9
0
 def __init__(self):
     ZCatalog.__init__(self, self.id)
     self.updateIndexes()
Beispiel #10
0
 def __init__(self):
     ZCatalog.__init__(self, self.getId())
     self._initIndexes(internal_cmf_16=True)
Beispiel #11
0
 def __init__(self, id, title, portal_meta_type):
     self.portal_type = portal_meta_type
     self.meta_type = portal_meta_type
     self.title = title
     self.counter = 0
     ZCatalog.__init__(self, id)
Beispiel #12
0
 def __init__(self):
     ZCatalog.__init__(self, self.getId())
 def __init__(self, *args, **kwargs):
     ZCatalog.__init__(self, self.getId())
     self.membrane_types = PersistentList()
Beispiel #14
0
 def __init__(self, *args, **kwargs):
     ZCatalog.__init__(self, self.getId())
     self.membrane_types = PersistentList()
Beispiel #15
0
 def __init__(self):
     ZCatalog.__init__(self, self.getId())
     self._initIndexes()
Beispiel #16
0
 def __init__(self, id=ALISS_CATALOG_ID, title=ALISS_CATALOG_TITLE):
     ZCatalog.__init__(self, id, title)
     self.__generateDefaultIndexes()
Beispiel #17
0
 def __init__(self):
     ZCatalog.__init__(self, self.id)
 def __init__(self, id=NAAYATHESAURUS_CATALOG_ID, title= NAAYATHESAURUS_CATALOG_TITLE):
     ZCatalog.__init__(self, id, title)
     self.__generateDefaultIndexes()
Beispiel #19
0
 def __init__(self, id, title, vocab_id, extra):
     BTreeFolder2.__init__(self, id)
     ZCatalog.__init__(self, id, title, vocab_id, extra)
Beispiel #20
0
 def __init__(self):
     ZCatalog.__init__(self, self.getId())
     warn('CatalogTool._initIndexes is deprecated and will be removed in '
          'CMF 2.0.',
          DeprecationWarning)
     self._initIndexes()
Beispiel #21
0
 def __init__(self):
     ZCatalog.__init__(self, self.getId())
     self._initIndexes()
Beispiel #22
0
 def __init__(self):
     ZCatalog.__init__(self, self.id)
     self._initIndexes()
Beispiel #23
0
 def __init__(self):
     ZCatalog.__init__(self, self.id)
     self._initIndexes()
Beispiel #24
0
 def __init__(self,
              id=NAAYATHESAURUS_CATALOG_ID,
              title=NAAYATHESAURUS_CATALOG_TITLE):
     ZCatalog.__init__(self, id, title)
     self.__generateDefaultIndexes()
Beispiel #25
0
 def __init__(self):
     ZCatalog.__init__(self, self.getId())
Beispiel #26
0
 def __init__(self):
     ZCatalog.__init__(self, self.id)
Beispiel #27
0
 def __init__(self):
     ZCatalog.__init__(self, self.getId())
     self._initIndexes(internal_cmf_16=True)
Beispiel #28
-1
 def __init__(self):
     ZCatalog.__init__(self, self.getId())
     
     if not hasattr(self, 'Vocabulary'):
         # As of 2.6, the Catalog no longer adds a vocabulary in itself
         from Products.PluginIndexes.TextIndex.Vocabulary import Vocabulary
         vocabulary = Vocabulary('Vocabulary', 'Vocabulary', globbing=1)
         self._setObject('Vocabulary', vocabulary)
         
     self._initIndexes()