[Opensrf-commits] r2221 - branches/rel_2_0/src/python/osrf (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Mar 28 23:06:18 EDT 2011


Author: dbs
Date: 2011-03-28 23:06:15 -0400 (Mon, 28 Mar 2011)
New Revision: 2221

Modified:
   branches/rel_2_0/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: branches/rel_2_0/src/python/osrf/app.py
===================================================================
--- branches/rel_2_0/src/python/osrf/app.py	2011-03-29 02:59:51 UTC (rev 2220)
+++ branches/rel_2_0/src/python/osrf/app.py	2011-03-29 03:06:15 UTC (rev 2221)
@@ -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