web/httpcache.py
changeset 3460 e4843535db25
parent 3451 6b46d73823f5
child 3462 3a79fecdd2b4
--- a/web/httpcache.py	Thu Sep 24 00:23:32 2009 +0200
+++ b/web/httpcache.py	Thu Sep 24 00:24:21 2009 +0200
@@ -17,7 +17,7 @@
     """default cache manager: set no-cache cache control policy"""
     def __init__(self, view):
         self.view = view
-        self.req = view.req
+        self.req = view._cw
         self.cw_rset = view.rset
 
     def set_headers(self):
@@ -42,7 +42,7 @@
     date_format = "%a, %d %b %Y %H:%M:%S GMT"
 
     def etag(self):
-        return self.view.id + '/' + ','.join(sorted(self.req.user.groups))
+        return self.view.__regid__ + '/' + ','.join(sorted(self.req.user.groups))
 
     def max_age(self):
         # 0 to actually force revalidation