RE: external python script populating items

Somhorst JJT <[email protected]> Mon, 9 May 2005 16:03:06 +0200
Newsgroups gmane.comp.web.zope.formulator.devel
Message-ID <[email protected]>
I admit what i'v said doesnt make any sence. The problem is with the
generation of the listfield items. In the objectform i've specified a python
script in the tales part to populate the dropdown box. In the add mode of
the object this does work but in the edit mode it doesnt work because it
doesnt know what to do with the value that was saved. 

My question is how can I change the script in such a way that it does know
what to do and select the right value as the value that was filled in when
adding the form. 

-----Original Message-----
From: formulator-dev-bounces-IAPFreCvJWM6s/[email protected]
[mailto:formulator-dev-bounces-IAPFreCvJWM6s/[email protected]]On Behalf Of Reinout van
Rees
Sent: maandag 9 mei 2005 15:40
To: formulator-dev-IAPFreCvJWM6s/[email protected]
Subject: RE: [formulator-dev] external python script populating items 


On Mon, 9 May 2005, Somhorst JJT wrote:

> 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.

Hm, I don't really understand your problem from your description. One
item extra or not in a tuple won't be a problem. And why would a form
complain when you edit an(other) object? What's the relation between
"editing the 6th object" and "formulator"? What's the object?

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"
_______________________________________________
formulator-dev mailing list
formulator-dev-IAPFreCvJWM6s/[email protected]
http://lists.infrae.com/mailman/listinfo/formulator-dev