391 self.req.form = self._rebuild_posted_form(names, values, action) |
391 self.req.form = self._rebuild_posted_form(names, values, action) |
392 return _validate_form(self.req, self.vreg) |
392 return _validate_form(self.req, self.vreg) |
393 |
393 |
394 @jsonize |
394 @jsonize |
395 def js_edit_field(self, action, names, values, rtype, eid, default): |
395 def js_edit_field(self, action, names, values, rtype, eid, default): |
396 success, args = self.validate_form(action, names, values) |
396 success, args, _ = self.validate_form(action, names, values) |
397 if success: |
397 if success: |
398 # Any X,N where we don't seem to use N is an optimisation |
398 # Any X,N where we don't seem to use N is an optimisation |
399 # printable_value won't need to query N again |
399 # printable_value won't need to query N again |
400 rset = self.req.execute('Any X,N WHERE X eid %%(x)s, X %s N' % rtype, |
400 rset = self.req.execute('Any X,N WHERE X eid %%(x)s, X %s N' % rtype, |
401 {'x': eid}, 'x') |
401 {'x': eid}, 'x') |