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
> http://svn.zope.org/Zope3/trunk/src/zope/app/publisher/xmlrpc/README.txt?re
>v=38357&view=markup)

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 
answers.

> Would it be interesting to start a Z3 proposal on this topic ?

Absolutely. It makes our XML-RPC implementation incomplete.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to