Django: metaWeblog: dir() doesn't show methods

alex23 wuwei23 at gmail.com
Mon May 21 01:13:39 EDT 2012


On May 21, 1:01 pm, "." <nkw... at gmail.com> wrote:
> Is this a bug or some sort of encapsulation?

More or less the latter.

What you have is a server proxy, something that passes data back &
forth between your app and the XMLRPC-providing server. So when you
dir() it, it's showing you the methods of the proxy, not of the RPC
server.

You should be able to do s.system.listMethods() to pull back all
available methods. Or to just give you the ones relevant to
metaWeblog: [m for m in s.system.listMethods() if 'metaWeblog' in m]




More information about the Python-list mailing list