On Friday 30 September 2005 12:55, Tarek Ziadé wrote:
> 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
No, it is not there.
> 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 ?
I think the better solution would be to have those methods registered as views
on all objects. Those methods then do some CA introspection to give the
> Would it be interesting to start a Z3 proposal on this topic ?
Absolutely. It makes our XML-RPC implementation incomplete.
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
Zope3-dev mailing list