Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/p/r/Products.QueueCatalog-1.6.0/Products/QueueCatalog/QueueCatalog.py   Products.QueueCatalog(Download)
# Local
from CatalogEventQueue import CatalogEventQueue, EVENT_TYPES, ADDED_EVENTS
from CatalogEventQueue import ADDED, CHANGED, CHANGED_ADDED, REMOVED
from CatalogEventQueue import SAFE_POLICY, ALTERNATIVE_POLICY
 
    def uncatalog_object(self, uid):
        if not isinstance(uid, StringType):
            uid = '/'.join(uid)
 
        self._update(uid, REMOVED)
 
        for uid, (t, event) in events.items():
            if event is REMOVED:
                try:
                    if cataloged(catalog, uid):