dynamic path to a method ???
Roger
roger at projekt01.ch
Fri Jul 5 14:05:23 EDT 2002
More information about the Python-list mailing list
Fri Jul 5 14:05:23 EDT 2002
- Previous message (by thread): dynamic path to a method ???
- Next message (by thread): dynamic path to a method ???
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Can anybody tell me how I can construct a dynamic path with attributes in a 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') with other attributes from the form, the call can look like this: MasterClass.addObject( name='manager') and so on... how can i handel this. ??? Thanks a lot. Mit freundlichen GrĂ¼ssen Roger Ineichen ___________________________ Projekt01 GmbH www.projekt01.ch Langackerstrasse 8 6330 Cham phone +41 (0)41 781 01 78 mobile +41 (0)79 340 52 32 fax +41 (0)41 781 00 78 email r.ineichen at projekt01.ch ___________________________ END OF MESSAGE
- Previous message (by thread): dynamic path to a method ???
- Next message (by thread): dynamic path to a method ???
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list