web/controller.py
branchstable
changeset 4557 a0571ff0cb5d
parent 4212 ab6573088b4a
child 4636 edafa2343dd7
equal deleted inserted replaced
4524:2eb36514ad6d 4557:a0571ff0cb5d
   151         """insert relations into the repository"""
   151         """insert relations into the repository"""
   152         execute = self.req.execute
   152         execute = self.req.execute
   153         for subj, rtype, obj in rdefs:
   153         for subj, rtype, obj in rdefs:
   154             rql = 'SET X %s Y where X eid %%(x)s, Y eid %%(y)s' % rtype
   154             rql = 'SET X %s Y where X eid %%(x)s, Y eid %%(y)s' % rtype
   155             execute(rql, {'x': subj, 'y': obj}, ('x', 'y'))
   155             execute(rql, {'x': subj, 'y': obj}, ('x', 'y'))
       
   156 
       
   157     def validate_cache(self, view):
       
   158         view.set_http_cache_headers()
       
   159         self.req.validate_cache()
   156 
   160 
   157 
   161 
   158     def reset(self):
   162     def reset(self):
   159         """reset form parameters and redirect to a view determinated by given
   163         """reset form parameters and redirect to a view determinated by given
   160         parameters
   164         parameters