[Zope3-dev] xmlrpc introspection
Tarek Ziadé
tziade at nuxeo.com
Fri Sep 30 12:55:38 EDT 2005
Hi all,
I was wondering if there's actually any way to make xmlrpc introspection
in Z3,
so i can list methods from my rpc client.
(it seems not, looking at the code and the agile doc there
http://svn.zope.org/Zope3/trunk/src/zope/app/publisher/xmlrpc/README.txt?rev=38357&view=markup)
--------------
If not, i've found this proposal on the web:
http://xmlrpc-c.sourceforge.net/xmlrpc-howto/xmlrpc-howto-api-introspection.html
I've thaught of wrapping my xmlrpc views with an adapter to provide the
3 extra methods in the view class:
class IXMLRPCIntrospector(View):
"""IXMLRPCIntrospector View"""
[...] some constructor [...]
def listMethods():
""" lists all xmlrpc methods implemented by the underlying view """
def methodHelp(method_name):
""" returns the docstring of given method """
def methodSignature(method_name):
""" returns the signature of given method
ie the list of all arguments
"""
Any advice ?
imo xmlrpc introspection can be useful in some cases
(in my case i need such feature to actually let the client application
remote-control the site)
Would it be interesting to start a Z3 proposal on this topic ?
Best regards,
Tarek
--
Tarek Ziadé, Nuxeo R&D (Paris, France)
CPS Platform : http://www.cps-project.org
Zope3 / ECM : http://www.z3lab.org
mail: tziade at nuxeo.com; tel: +33 (0) 6 30 37 02 63
More information about the Zope3-dev
mailing list