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

. nkwerk at gmail.com
Sun May 20 23:01:21 EDT 2012


Hello,

I'm using Django and metaWeblog.

s = xmlrpclib.Server("http://localhost:8000/xmlrpc/")
# Let's call a method
s.metaWeblog.test()
"Test"
# It works

#But it won't output available methods if I try to use dir() for this
purpose
dir(s.metaWeblog)
['_Method__name', '_Method__send', '__call__', '__doc__',
'__getattr__', '__init__', '__module__']
# It doesn't contain my test method

Is this a bug or some sort of encapsulation?


Regards



More information about the Python-list mailing list