web/views/basecontrollers.py
branchstable
changeset 5141 9ea2250cd049
parent 5139 61b607c8571b
child 5151 2f70fa8b6854
equal deleted inserted replaced
5140:ef1fcd6f48ff 5141:9ea2250cd049
   278             args = (args,)
   278             args = (args,)
   279         try:
   279         try:
   280             args = [simplejson.loads(arg) for arg in args]
   280             args = [simplejson.loads(arg) for arg in args]
   281         except ValueError, exc:
   281         except ValueError, exc:
   282             self.exception('error while decoding json arguments for js_%s: %s', fname, args, exc)
   282             self.exception('error while decoding json arguments for js_%s: %s', fname, args, exc)
   283             raise RemoteCallFailed(repr(exc)
   283             raise RemoteCallFailed(repr(exc))
   284         try:
   284         try:
   285             result = func(*args)
   285             result = func(*args)
   286         except RemoteCallFailed:
   286         except RemoteCallFailed:
   287             raise
   287             raise
   288         except Exception, ex:
   288         except Exception, ex: