RE: external python script populating items

Reinout van Rees <[email protected]> Mon, 9 May 2005 13:31:11 +0200 (CEST)
Newsgroups gmane.comp.web.zope.formulator.devel
Message-ID <[email protected]>
On Mon, 9 May 2005, Somhorst JJT wrote:

> The second form is basicly the same but its function is to present the
> information when a user wants to EDIT the object. When i try to edit
> something my server stops and says:
>
> AttributeError: Request

<snip>

>        'request': <HTTPRequest,
> URL=http://localhost:8080/testroot/01010/edit/index_html>,

<snip>

> AttributeError: REQUEST

I can't see the error right away (as I see no "REQUEST" or "request"
in your python script), but I'd look at that. The case of 'request', I
mean. In certain parts of zope you need REQUEST, in others request.

As I don't see it in your script, have you perhaps (through the ZMI)
defined 'REQUEST' as a needed parameter?

Another option: formulator can pass its validated values also through
the REQUEST variable. Perhaps there's some mismatch there.

I hope I've managed to hit a bell somewhere with my wild shooting...

Reinout

-- 
Reinout van Rees                  r.van.rees-1kr/[email protected]
http://vanrees.org/weblog/            http://zestsoftware.nl
"engineer: a mechanism for converting caffeine into designs"