def update(self): request = self.request if request.has_key('advanced.reindexAll'): intids = getUtility(IIntIds) index = getUtility(ILuceneIndex) for id in intids: ob = intids.queryObject(id) if ob is not None: indexObject(ob, index, intids)
def update(self): super(LuceneProduct, self).update() request = self.request if request.has_key('advanced.reindexAll'): intids = getUtility(IIntIds) index = getUtility(ILuceneIndex) for id in intids: ob = intids.queryObject(id) if ob is not None: indexObject(ob, index, intids) IStatusMessage(request).add(_(u'Reindex process has been completed.'))