Did I find the right examples for you? yes no

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/p/r/Products.CMFSquidTool-1.5.1/Products/CMFSquidTool/queue.py   Products.CMFSquidTool(Download)
from Products.CMFCore.utils import getToolByName
from Products.CMFSquidTool.utils import logger
from Products.CMFSquidTool.utils import pruneAsync
from Products.CMFSquidTool.patch import wrap_method, call
from Products.CMFSquidTool.threadinglocal import local
    def _finish(self):
        # Process any pending url invalidations. This should *never*
        # fail.
        for url in self.urls():
            pruneAsync(url, purge_type='PURGE')
        for ob_url in purge_urls:
            if commiting:
                pruneAsync(ob_url, purge_type='PURGE')
            else:
                self.append(ob_url)

src/p/r/Products.CMFSquidTool-1.5.1/Products/CMFSquidTool/SquidTool.py   Products.CMFSquidTool(Download)
from Products.CMFCore.FSObject import FSObject
from Products.CMFSquidTool.Permissions import *
from Products.CMFSquidTool.utils import pruneUrl, pruneAsync
from Products.CMFSquidTool.utils import logger
 
                REQUEST.RESPONSE.write('%s\t%s\t%s\n' % (status, url, xerror or xcache))
            else:
                pruneAsync(url, purge_type)
                status = "Queued"
                xcache = xerror = ""