web/views/basecontrollers.py
changeset 7436 28ec860c4436
parent 7432 cab99ccdb774
parent 7435 a2c83140794e
child 7536 29961a416faa
equal deleted inserted replaced
7433:9aadb5a04b53 7436:28ec860c4436
   279         if not isinstance(args, (list, tuple)):
   279         if not isinstance(args, (list, tuple)):
   280             args = (args,)
   280             args = (args,)
   281         try:
   281         try:
   282             args = [json.loads(arg) for arg in args]
   282             args = [json.loads(arg) for arg in args]
   283         except ValueError, exc:
   283         except ValueError, exc:
   284             self.exception('error while decoding json arguments for js_%s: %s',
   284             self.exception('error while decoding json arguments for js_%s: %s (err: %s)',
   285                            fname, args, exc)
   285                            fname, args, exc)
   286             raise RemoteCallFailed(exc_message(exc, self._cw.encoding))
   286             raise RemoteCallFailed(exc_message(exc, self._cw.encoding))
   287         try:
   287         try:
   288             result = func(*args)
   288             result = func(*args)
   289         except (RemoteCallFailed, DirectResponse):
   289         except (RemoteCallFailed, DirectResponse):