web/httpcache.py
changeset 5244 5467674ad101
parent 5223 6abd6e3599f4
child 5423 e15abfdcce38
--- a/web/httpcache.py	Wed Apr 14 10:25:51 2010 +0200
+++ b/web/httpcache.py	Wed Apr 14 10:29:38 2010 +0200
@@ -43,7 +43,7 @@
     """
 
     def etag(self):
-        if self.req.cnx is None:
+        if not self.req.cnx: # session without established connection to the repo
             return self.view.__regid__
         return self.view.__regid__ + '/' + ','.join(sorted(self.req.user.groups))