Changeset 2266 for WAeUP_SRP


Ignore:
Timestamp:
21 Sep 2007, 19:02:23 (17 years ago)
Author:
Henrik Bettermann
Message:

catalog_objects ignored immediate_indexes - fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/PatchQueueCatalogProcessQueue.py

    r2264 r2266  
    1111from Products.QueueCatalog.CatalogEventQueue import SAFE_POLICY, ALTERNATIVE_POLICY
    1212from Products.QueueCatalog.QueueCatalog import cataloged
    13 from Products.QueueCatalog.QueueCatalog import QueueCatalog 
     13from Products.QueueCatalog.QueueCatalog import QueueCatalog
    1414from ZODB.POSException import ConflictError
    1515from ZEO.Exceptions import ClientDisconnected
     
    1717security = ClassSecurityInformation()
    1818
    19 def __init__(self, 
    20              buckets=1009, 
     19def __init__(self,
     20             buckets=1009,
    2121             conflict_policy=SAFE_POLICY,
    2222             bypass = False,
     
    4444    # update metadata during queue processing, rather than immediately
    4545
    46     # similarly, limiting the idxs only limits the immediate indexes.  If 
     46    # similarly, limiting the idxs only limits the immediate indexes.  If
    4747    # any work needs to be done in the queue processing, it will all be
    48     # done: we have not implemented partial indexing during queue 
    49     # processing.  The only way to avoid any of it is to avoid all of it 
    50     # (i.e., update metadata immediately and don't have any indexes to 
     48    # done: we have not implemented partial indexing during queue
     49    # processing.  The only way to avoid any of it is to avoid all of it
     50    # (i.e., update metadata immediately and don't have any indexes to
    5151    # update on the queued side).
    5252
     
    7676    # (non-undo) conflicts of add events. This will slow things
    7777    # down a bit, but adds should be relatively infrequent.
    78     bypass_queue = self.getBypassQueue()   
     78    bypass_queue = self.getBypassQueue()
    7979    # Now, try to decide if the catalog has the uid (path).
    8080    already_cataloged = cataloged(catalog, uid)
     
    8585            self._queues[hash(uid) % self._buckets].getEvent(uid) in
    8686            ADDED_EVENTS)
     87           
    8788    if idxs and already_cataloged:
    8889        # if not already_cataloged, we index the whole thing
     
    99100            self._update(uid, already_cataloged and CHANGED or ADDED)
    100101        # Update some of the indexes immediately.
    101     elif immediate_indexes:
     102    if immediate_indexes:
    102103        # Update some of the indexes immediately.
    103104        catalog.catalog_object(
Note: See TracChangeset for help on using the changeset viewer.