From 4b17a6dfbbc2d6adafbc9103b97fd78c43c2efe4 Mon Sep 17 00:00:00 2001 From: Derrell Lipman <derrell@samba.org> Date: Tue, 3 Oct 2006 02:38:08 +0000 Subject: r19055: JSON-RPC is working! It passes the small qooxdoo JSON-RPC test suite perfectly. This check in covers the remaining fixes and enhancements to complete the server. In a subsequent check-in, I need to learn about the new qooxdoo packaging mechanism. Although it'd be nice to have the whole source tree, that's huge and needn't be in samba svn. It's now supposed to be very easy to package qooxdoo, so I'll figure out how that's done and then check in the relevant small number of files. Steps after that involve generating the stubs to allow various ejs functions to be called via JSON-RPC. Derrell (This used to be commit 5bfebbda7a5d28d4deb31c54a8feb24c4416cbf6) --- jsonrpc/qooxdoo/test.esp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'jsonrpc/qooxdoo') diff --git a/jsonrpc/qooxdoo/test.esp b/jsonrpc/qooxdoo/test.esp index 5fd893c217..03c2d824ba 100644 --- a/jsonrpc/qooxdoo/test.esp +++ b/jsonrpc/qooxdoo/test.esp @@ -31,7 +31,7 @@ function _echo(params, error) { if (params.length != 1) { - error.SetError(JsonRpcError_ParameterMismatch, + error.setError(JsonRpcError_ParameterMismatch, "Expected 1 parameter; got " + params.length); return error; } @@ -75,9 +75,9 @@ function _sleep(params, error) { if (params.length != 1) { - error.SetError(JsonRpcError_ParameterMismatch, + error.setError(JsonRpcError_ParameterMismatch, "Expected 1 parameter; got " + params.length); - return null; + return error; } sleep(params[0]); @@ -222,7 +222,7 @@ jsonrpc.method.getCurrentTimestamp = _getCurrentTimestamp; function _getError(params, error) { - error.SetError(23, "This is an application-provided error"); + error.setError(23, "This is an application-provided error"); return error; } jsonrpc.method.getError = _getError; -- cgit