web/views/basecontrollers.py
changeset 4003 b9436fe77c9e
parent 3890 d7a270f50f54
child 4023 eae23c40627a
equal deleted inserted replaced
3998:94cc7cad3d2d 4003:b9436fe77c9e
   247         :args: arguments list (json)
   247         :args: arguments list (json)
   248 
   248 
   249         note: it's the responsability of js_* methods to set the correct
   249         note: it's the responsability of js_* methods to set the correct
   250         response content type
   250         response content type
   251         """
   251         """
   252 <<<<<<< /home/syt/src/fcubicweb/cubicweb/web/views/basecontrollers.py
       
   253         self._cw.json_request = True
   252         self._cw.json_request = True
   254         self._cw.pageid = self._cw.form.get('pageid')
       
   255 =======
       
   256         self.req.json_request = True
       
   257 >>>>>>> /tmp/basecontrollers.py~other.K2YVFx
       
   258         try:
   253         try:
   259             fname = self._cw.form['fname']
   254             fname = self._cw.form['fname']
   260             func = getattr(self, 'js_%s' % fname)
   255             func = getattr(self, 'js_%s' % fname)
   261         except KeyError:
   256         except KeyError:
   262             raise RemoteCallFailed('no method specified')
   257             raise RemoteCallFailed('no method specified')