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')
示例#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()
示例#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()
示例#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)
示例#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()
示例#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()
示例#9
0
 def __init__(self):
     ZCatalog.__init__(self, self.id)
     self.updateIndexes()
示例#10
0
 def __init__(self):
     ZCatalog.__init__(self, self.getId())
     self._initIndexes(internal_cmf_16=True)
示例#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)
示例#12
0
 def __init__(self):
     ZCatalog.__init__(self, self.getId())
示例#13
0
 def __init__(self, *args, **kwargs):
     ZCatalog.__init__(self, self.getId())
     self.membrane_types = PersistentList()
示例#14
0
 def __init__(self, *args, **kwargs):
     ZCatalog.__init__(self, self.getId())
     self.membrane_types = PersistentList()
示例#15
0
 def __init__(self):
     ZCatalog.__init__(self, self.getId())
     self._initIndexes()
示例#16
0
 def __init__(self, id=ALISS_CATALOG_ID, title=ALISS_CATALOG_TITLE):
     ZCatalog.__init__(self, id, title)
     self.__generateDefaultIndexes()
示例#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()
示例#19
0
 def __init__(self, id, title, vocab_id, extra):
     BTreeFolder2.__init__(self, id)
     ZCatalog.__init__(self, id, title, vocab_id, extra)
示例#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()
示例#21
0
 def __init__(self):
     ZCatalog.__init__(self, self.getId())
     self._initIndexes()
示例#22
0
 def __init__(self):
     ZCatalog.__init__(self, self.id)
     self._initIndexes()
示例#23
0
 def __init__(self):
     ZCatalog.__init__(self, self.id)
     self._initIndexes()
示例#24
0
 def __init__(self,
              id=NAAYATHESAURUS_CATALOG_ID,
              title=NAAYATHESAURUS_CATALOG_TITLE):
     ZCatalog.__init__(self, id, title)
     self.__generateDefaultIndexes()
示例#25
0
 def __init__(self):
     ZCatalog.__init__(self, self.getId())
示例#26
0
 def __init__(self):
     ZCatalog.__init__(self, self.id)
示例#27
0
 def __init__(self):
     ZCatalog.__init__(self, self.getId())
     self._initIndexes(internal_cmf_16=True)
示例#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()