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

def CacheSetup::content::caching_policy_manager::CSCachingPolicyManager::getETag (   self,
  content,
  view_method,
  keywords,
  time = None 
)

Return the ETag for the content object; ignores getEnable304s setting

Definition at line 93 of file caching_policy_manager.py.

00093                                                                  :
        """ Return the ETag for the content object; ignores getEnable304s setting"""
        pcs = getToolByName(self, CACHE_TOOL_ID)
        member = pcs.getMember()
        request = self.REQUEST
        (rule, header_set) = pcs.getRuleAndHeaderSet(request, content, view_method, member)
        if header_set:
            expr_context = rule._getExpressionContext(request, content, view_method, member)
            etag = header_set.getEtagValue(expr_context)
            return etag

InitializeClass( CSCachingPolicyManager )
InitializeClass( CSCachingPolicyManager )


Generated by  Doxygen 1.6.0   Back to index