Logo Search packages:      
Sourcecode: zope-cachefu version File versions  Download package

def CMFSquidTool::SquidTool::SquidTool::manage_pruneAll (   self,
  REQUEST = None 
)

Prune all objects in catalog

Definition at line 238 of file SquidTool.py.

00238                                            :
        """Prune all objects in catalog
        """
        portal_catalog = getToolByName(self, 'portal_catalog')
        brains = portal_catalog()
        for brain in brains:
            self.pruneObject(brain.getObject(), REQUEST=REQUEST)

        if REQUEST:
            url = REQUEST['HTTP_REFERER'].split('?')[0]
            url += '?portal_status_message=Cache+cleared'
            REQUEST.RESPONSE.redirect(url)

        return "finished"

InitializeClass(SquidTool)
InitializeClass(SquidTool)


Generated by  Doxygen 1.6.0   Back to index