Give Python services introspection methods matching C and Perl
authordbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 29 Mar 2011 02:59:51 +0000 (02:59 +0000)
committerdbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 29 Mar 2011 02:59:51 +0000 (02:59 +0000)
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

index ae00270..0dfaa19 100644 (file)
@@ -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