At 9:35 am -0600 11/2/00, Evan Simpson wrote:
You can't treat PythonMethods like modules. In a module, the 'import' would put 'xmlrpclib' into the module-global namespace, where 'doit' could find it. In this PM, 'import' creates a local variable which is not visible from 'doit'. Unless it really helps reduce redundancy, functions in PMs aren't generally a good idea. You could make this example work by adding a 'global xmlrpclib' line before the 'import' line, though.
Cheers,
Evan @ digicool
Thanks for the info. Evan, I eventually got it to work by doing this; global xmlrpclib import xmlrpclib server_url="http://xmlrpc.server:9999" server=xmlrpclib.Server(server_url) print server.getValidMethods() return printed point taken about functions etc. many thanks, now to start doing some XML-RPC work.... :) tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2