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')
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()
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()
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)
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()
def __init__(self): ZCatalog.__init__(self, self.getId()) warn( 'CatalogTool._initIndexes is deprecated and will be removed in ' 'CMF 2.0.', DeprecationWarning) self._initIndexes()
def __init__(self): ZCatalog.__init__(self, self.id) self.updateIndexes()
def __init__(self): ZCatalog.__init__(self, self.getId()) self._initIndexes(internal_cmf_16=True)
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)
def __init__(self): ZCatalog.__init__(self, self.getId())
def __init__(self, *args, **kwargs): ZCatalog.__init__(self, self.getId()) self.membrane_types = PersistentList()
def __init__(self, *args, **kwargs): ZCatalog.__init__(self, self.getId()) self.membrane_types = PersistentList()
def __init__(self): ZCatalog.__init__(self, self.getId()) self._initIndexes()
def __init__(self, id=ALISS_CATALOG_ID, title=ALISS_CATALOG_TITLE): ZCatalog.__init__(self, id, title) self.__generateDefaultIndexes()
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()
def __init__(self, id, title, vocab_id, extra): BTreeFolder2.__init__(self, id) ZCatalog.__init__(self, id, title, vocab_id, extra)
def __init__(self): ZCatalog.__init__(self, self.getId()) warn('CatalogTool._initIndexes is deprecated and will be removed in ' 'CMF 2.0.', DeprecationWarning) self._initIndexes()
def __init__(self): ZCatalog.__init__(self, self.getId()) self._initIndexes()
def __init__(self): ZCatalog.__init__(self, self.id) self._initIndexes()
def __init__(self): ZCatalog.__init__(self, self.id) self._initIndexes()
def __init__(self, id=NAAYATHESAURUS_CATALOG_ID, title=NAAYATHESAURUS_CATALOG_TITLE): ZCatalog.__init__(self, id, title) self.__generateDefaultIndexes()
def __init__(self): ZCatalog.__init__(self, self.getId())
def __init__(self): ZCatalog.__init__(self, self.id)
def __init__(self): ZCatalog.__init__(self, self.getId()) self._initIndexes(internal_cmf_16=True)
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()