web/views/basecontrollers.py
branchstable
changeset 4721 8f63691ccb7f
parent 4719 aaed3f813ef8
child 4739 64806b0f7431
equal deleted inserted replaced
4720:ddf4f19eb07a 4721:8f63691ccb7f
   400         self._cw.form = self._rebuild_posted_form(names, values, action)
   400         self._cw.form = self._rebuild_posted_form(names, values, action)
   401         return _validate_form(self._cw, self._cw.vreg)
   401         return _validate_form(self._cw, self._cw.vreg)
   402 
   402 
   403     @xhtmlize
   403     @xhtmlize
   404     def js_reledit_form(self):
   404     def js_reledit_form(self):
   405         args = dict((x,self._cw.form[x])
   405         args = dict((x, self._cw.form[x])
   406                     for x in frozenset(('rtype', 'role', 'reload', 'landing_zone')))
   406                     for x in frozenset(('rtype', 'role', 'reload', 'landing_zone')))
   407         entity = self._cw.entity_from_eid(int(self._cw.form['eid']))
   407         entity = self._cw.entity_from_eid(int(self._cw.form['eid']))
   408         # note: default is reserved in js land
   408         # note: default is reserved in js land
   409         args['default'] = self._cw.form['default_value']
   409         args['default'] = self._cw.form['default_value']
   410         args['reload'] = simplejson.loads(args['reload'])
   410         args['reload'] = simplejson.loads(args['reload'])