def update(self): super(PayableProduct, self).update() if self.__installed__: folder = registerUtility('payable', Folder, [(IStore, '')]) interface.alsoProvides(folder, IStore) orderManager = registerUtility('ordermanager', OrderManager, [(IOrderManager, '')], folder) cartutility = registerUtility('cartutility', ShoppingCartUtility, [(IShoppingCartUtility, '')], folder)
def update(self): super(ContentTypesProduct, self).update() registerUtility('contenttypes.event.isEvent', indexIsEvent, ((ICatalogIndex, 'eventIsEvent'),), 'indexes') registerUtility('contenttypes.event.startDate', indexStartDate, ((ICatalogIndex, 'eventStartDate'),), 'indexes') registerUtility('contenttypes.event.endDate', indexEndDate, ((ICatalogIndex, 'eventEndDate'),), 'indexes')
def update(self): registerUtility('zojax.lucene', PortalLuceneIndex, ((ILuceneIndex, ''), (ICatalogIndex, 'searchableText'))) super(LuceneInstaller, self).update()