summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/wsgi/jsonutil.py
diff options
context:
space:
mode:
Diffstat (limited to 'sca-cpp/trunk/modules/wsgi/jsonutil.py')
-rw-r--r--sca-cpp/trunk/modules/wsgi/jsonutil.py6
1 files changed, 4 insertions, 2 deletions
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