RE: external python script populating items

Somhorst JJT <[email protected]> Mon, 9 May 2005 13:43:34 +0200
Newsgroups gmane.comp.web.zope.formulator.devel
Message-ID <[email protected]>
Well ofcourse there will be a 'mismatch'.. or atleast i think there is. The
script does nothing else
then just loading all objects in the current directory and placing this into
a tuple ( as you ofcourse already saw ). When i'm adding a new object the
tuple containts let's say 5 objects. When I edit the object there will be
six objects ofcourse. Thats why I think it goes wrong. And I dont really
know how to build a work-around i'm not such a great programmer..
(unfortunately).

you're question about the request.. no I didnt specify it in the zmi.

-----Original Message-----
From: Reinout van Rees [mailto:[email protected]]
Sent: maandag 9 mei 2005 13:31
To: Somhorst JJT
Cc: 'formulator-dev-IAPFreCvJWM6s/[email protected]'
Subject: RE: [formulator-dev] external python script populating items 


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"