equal
deleted
inserted
replaced
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 |