diff -r 1ab7acb9abe9 -r 5467674ad101 web/httpcache.py --- 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))