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

def CMFSquidTool::SquidTool::SquidTool::manage_setSquidSettings (   self,
  urls,
  url_expression = None,
  REQUEST = None 
)

Store the tool settings

Definition at line 173 of file SquidTool.py.

00173                                                                               :
        """Store the tool settings
        """

        urls = urls.replace("\r\n", "\n")
        urls = urls.split("\n")
        urls = map(lambda x: x.strip(), urls)
        urls = filter(lambda x: x, urls)
        self.squid_urls = urls

        if url_expression is not None:
            self.setUrlExpression(url_expression)

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

    security.declarePrivate('computePurgeUrls')
    def computePurgeUrls(self, ob_urls):


Generated by  Doxygen 1.6.0   Back to index