Esempio n. 1
0
def getCounter(self):
    """ return a counter which is increased on catalog changes """
    processQueue()
    return self.__af_old_getCounter()
Esempio n. 2
0
def unrestrictedSearchResults(self, REQUEST=None, **kw):
    """ flush the queue before querying the catalog """
    processQueue()
    return self.__af_old_unrestrictedSearchResults(REQUEST, **kw)
Esempio n. 3
0
 def unindex(self, obj):
     result = orig_unindex(self, obj)
     processQueue()
     return result
Esempio n. 4
0
 def reindex(self, obj, attributes=None):
     result = orig_reindex(self, obj, attributes=attributes)
     processQueue()
     return result
Esempio n. 5
0
def getCounter(self):
    """ return a counter which is increased on catalog changes """
    processQueue()
    return self.__af_old_getCounter()
Esempio n. 6
0
def unrestrictedSearchResults(self, REQUEST=None, **kw):
    """ flush the queue before querying the catalog """
    processQueue()
    return self.__af_old_unrestrictedSearchResults(REQUEST, **kw)