[Zope] Help! Trying to create an instance and then change the owner...

Florent Guillaume fg@nuxeo.com
17 Nov 2001 02:20:00 GMT


> #THE FOLLOWING LINE IS LINE 27 - SEE THE TRACEBACK BELOW
> 
> obj = _.getitem(request.form['username'])

_ is the namespace, not the context. Use:

obj = getattr(context, request.form['username'])


Florent

-- 
Florent Guillaume, Nuxeo SARL (Paris, France)
+33 1 40 33 79 10  http://nuxeo.com  mailto:fg@nuxeo.com