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

def PolicyHTTPCacheManager::PolicyHTTPCacheManager::PolicyHTTPCacheManager::sort_link (   self,
  name,
  id 
)

Utility for generating a sort link.

Definition at line 215 of file PolicyHTTPCacheManager.py.

00215                                  :
        """
        Utility for generating a sort link.
        """
        sort_by, sort_reverse = self._getSortInfo()
        url = self.absolute_url() + '/manage_stats?sort_by=' + id
        newsr = 0
        if sort_by == id:
            newsr = not sort_reverse
        url = url + '&sort_reverse=' + (newsr and '1' or '0')
        return '<a href="%s">%s</a>' % (escape(url, 1), escape(name))


InitializeClass(PolicyHTTPCacheManager)

manage_addPolicyHTTPCacheManagerForm = DTMLFile('dtml/addPolicy', globals())


Generated by  Doxygen 1.6.0   Back to index