web/views/basecontrollers.py
branch3.5
changeset 3260 49728db93b3e
parent 3237 ee2253f9fbe6
child 3293 69c0ba095536
child 3327 44efba78afac
equal deleted inserted replaced
3259:2c5c1f434640 3260:49728db93b3e
   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')