From: dbs Date: Tue, 29 Mar 2011 02:59:51 +0000 (+0000) Subject: Give Python services introspection methods matching C and Perl X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8d18defaca6949827ffdd67e16a2e2a11239abce;p=opensrf%2Fbjwebb.git 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 --- 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