[Zope3-Users] Re: Formlib - handleSubmit, custom validator on action

Fred Drake fdrake at gmail.com
Thu Mar 29 09:24:42 EDT 2007


On 3/29/07, Darryl Cousins <darryl at darrylcousins.net.nz> wrote:
> OK. Then what I'm missing is how to assign a value to that variable
> `data` because in my code
...
> So I am always getting an empty dictionary back to my action method.

Don't set the `data` variable; add values to it:

  data["myfield"] = somevalue


  -Fred

-- 
Fred L. Drake, Jr.    <fdrake at gmail.com>
"Every sin is the result of a collaboration." --Lucius Annaeus Seneca


More information about the Zope3-users mailing list