Exemple #1
0
    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)
Exemple #2
0
    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.'))