[Opensrf-commits] r2220 - trunk/src/python/osrf (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Mar 28 22:59:53 EDT 2011


Author: dbs
Date: 2011-03-28 22:59:51 -0400 (Mon, 28 Mar 2011)
New Revision: 2220

Modified:
   trunk/src/python/osrf/app.py
Log:
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.


Modified: trunk/src/python/osrf/app.py
===================================================================
--- trunk/src/python/osrf/app.py	2011-03-29 02:09:16 UTC (rev 2219)
+++ trunk/src/python/osrf/app.py	2011-03-29 02:59:51 UTC (rev 2220)
@@ -145,13 +145,20 @@
         )
         
         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
+        )
+
+        Application.register_method(
             api_name = 'opensrf.system.echo',
             method = 'sysmethod_echo',
             argc = 1,



More information about the opensrf-commits mailing list