dynamic path to a method ???

Roger Ineichen trash.mail at gmx.ch
Fri Jul 5 14:07:53 EDT 2002


Can anybody tell me how I can construct a dynamic path to a method in
an other python class?

my situation is:
I get the classname, methodname and attributes by a dynamic form. They
are strings and the names and attributes are dynamic. I do a iteration
over the request an split the names and attributes.
Example after iteration over the request:

class (instance) = 'personManager'
method = 'addPerson(firstname='', lastname='')'
attribute1, firstname = 'max'
attribute2, lastname = 'miller'

how can I construct a dynamic path like: 
personManager.addPerson( firstname='max', lastname='miller')

Thanks for a answer... and have a nice weekend.
Roger



More information about the Python-list mailing list