[Zope3-dev] Re: [Zope3-Users] z3c.form 1.0.0 released!

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu May 31 02:34:35 EDT 2007

On Thursday 31 May 2007 02:25, Nikolay Kim wrote:
> > Not sure what mappings you're talking about. I just want to
> > know how can I get some data from somewhere (it may be a
> > file, RDBMS or other external source) and display it in a form,
> > then edit this data etc. Formlib default forms (EditForm, AddForm)
> > assume that it works with content objects and I just want to call
> > SQLScript to get data for my form and to commit it back to RDBMS.
> > Not so difficult but there are no docs and no demos for this with
> > formlib. Thats why  I'd like to know how to do such things
> > with z3c.form.
> you should redefine getContent method on your form, inside getContent
> you can get data from anywhere and return it in dict.

Yes, this is correct. You can also have other data structures. All you have to 
do is to develop and register a new data manager. By default there are two 
data managers registered: one for instances and one for dicts.

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

More information about the Zope3-users mailing list