[Zope] Totaly dynamic path?

Roger roger@projekt01.ch
Fri, 5 Jul 2002 02:37:55 +0200


Can anybody tell me how I can construct a dynamic path with attributes
in a python product?

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:

object =3D 'personManager'
method =3D 'getData().addPerson'
attribute1, firstname =3D 'max'
attribute2, lastname =3D 'miller'

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


Mit freundlichen Gr=FCssen
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@projekt01.ch
___________________________
END OF MESSAGE