> > It works together with a mapper like SQLAlchemy (and z3c.zalchemy).
> >
> > IMHO, it is not formlib's task to do mappings like that.
> >   
> 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.

_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to