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