From c59c7ef6db1f5c6458109f0627a8853c7f162f80 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Sat, 17 Jul 2010 22:44:52 +0000 Subject: Support the host property and a /logout URL on WSGI servers. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@965145 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/modules/wsgi/jsonutil.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sca-cpp/trunk/modules/wsgi/jsonutil.py') diff --git a/sca-cpp/trunk/modules/wsgi/jsonutil.py b/sca-cpp/trunk/modules/wsgi/jsonutil.py index ae7839df57..f69559de54 100644 --- a/sca-cpp/trunk/modules/wsgi/jsonutil.py +++ b/sca-cpp/trunk/modules/wsgi/jsonutil.py @@ -132,9 +132,11 @@ def jsonResultValue(s): # Return a portable function name from a JSON-RPC function name def funcName(f): - if len(f) > 7 and f.find("system.") == 0: + if f.startswith("."): + return f[1:] + if f.startswith("system."): return f[7:] - if len(f) > 8 and f.find("Service.") == 0: + if f.startswith("Service."): return f[8:] return f -- cgit v1.2.3