merge 3.5/stable heads stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Fri, 12 Feb 2010 13:33:54 +0100
branchstable
changeset 4559 242e76469664
parent 4558 259e7ef7c373 (diff)
parent 4555 8968c50818db (current diff)
child 4561 029e08b1723f
child 4562 7e781ff78726
child 4636 edafa2343dd7
merge 3.5/stable heads
--- a/.hgtags	Fri Feb 12 12:57:14 2010 +0100
+++ b/.hgtags	Fri Feb 12 13:33:54 2010 +0100
@@ -98,3 +98,4 @@
 4920121d41f28c8075a4f00461911677396fc566 cubicweb-debian-version-3.5.11-1
 98af3d02b83e7635207781289cc3445fb0829951 cubicweb-version-3.5.12
 4281e1e2d76b9a37f38c0eeb1cbdcaa2fac6533c cubicweb-debian-version-3.5.12-1
+a0571ff0cb5da51c20a56318a2c1cb81e4a5220e 3.5
--- a/web/controller.py	Fri Feb 12 12:57:14 2010 +0100
+++ b/web/controller.py	Fri Feb 12 13:33:54 2010 +0100
@@ -154,6 +154,10 @@
             rql = 'SET X %s Y where X eid %%(x)s, Y eid %%(y)s' % rtype
             execute(rql, {'x': subj, 'y': obj}, ('x', 'y'))
 
+    def validate_cache(self, view):
+        view.set_http_cache_headers()
+        self.req.validate_cache()
+
 
     def reset(self):
         """reset form parameters and redirect to a view determinated by given
--- a/web/views/basecontrollers.py	Fri Feb 12 12:57:14 2010 +0100
+++ b/web/views/basecontrollers.py	Fri Feb 12 13:33:54 2010 +0100
@@ -142,10 +142,6 @@
         if view.add_to_breadcrumbs and not view.binary:
             self.req.update_breadcrumbs()
 
-    def validate_cache(self, view):
-        view.set_http_cache_headers()
-        self.req.validate_cache()
-
     def execute_linkto(self, eid=None):
         """XXX __linkto parameter may cause security issue
 
@@ -350,6 +346,7 @@
         except NoSelectableObject:
             vid = req.form.get('fallbackvid', 'noresult')
             view = self.vreg['views'].select(vid, req, rset=rset)
+        self.validate_cache(view)
         return self._call_view(view)
 
     @xhtmlize