From 8d18defaca6949827ffdd67e16a2e2a11239abce Mon Sep 17 00:00:00 2001 From: dbs Date: Tue, 29 Mar 2011 02:59:51 +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/trunk@2220 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