[Zope3-dev] createAndAdd(data)

Stephan Richter stephan.richter@tufts.edu
Mon, 21 Jul 2003 07:03:03 -0400


On Sunday 20 July 2003 10:55, Marcus J. Ertl wrote:
> At adding a new object per zmi, 'createAndAdd(data)' should get the form
>
> input in 'data', but all I get is an empty dictionary '{}'! :-(
>
> Bug? Or an error of my?

Error of yours. :-)

the checkbox on the addform page of the MessageBoard is not based on a widget, 
and data only contains values coming from the widgets. Therefore it is empty.

Of you go and add a Gadfly DA for example, you will see that the data dict is 
filled.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training