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