From 4f6bd9972bdd112c848d87dba4e09d575a97a3e7 Mon Sep 17 00:00:00 2001 From: dbs Date: Tue, 29 Mar 2011 03:06:15 +0000 Subject: [PATCH] Give Python services introspection methods matching C and Perl Perl and C services offer "opensrf.system.method" and "opensrf.system.method.all" methods for accessing service information. Renaming Python's methods to match at least enables srfsh to access this information, even if it does still need to be taught to provide that information in a consistent manner. git-svn-id: svn://svn.open-ils.org/OpenSRF/branches/rel_2_0@2221 9efc2488-bf62-4759-914b-345cdb29e865 --- src/python/osrf/app.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/python/osrf/app.py b/src/python/osrf/app.py index ae00270..0dfaa19 100644 --- a/src/python/osrf/app.py +++ b/src/python/osrf/app.py @@ -145,7 +145,14 @@ class Application(object): ) Application.register_method( - api_name = 'opensrf.system.introspect', + api_name = 'opensrf.system.method', + method = 'sysmethod_introspect', + argc = 0, + stream = True + ) + + Application.register_method( + api_name = 'opensrf.system.method.all', method = 'sysmethod_introspect', argc = 0, stream = True -- 2.11.0