On Tuesday 18 April 2006 10:44, Marco Mariani wrote:
> Should I set form_fields['photo'].custom_widget ? To what?
You have several choices, though this is a good one. I am not sure that there
is an ImageWidget, but I think there is a file one. In one of my latest
projects, we wrote some custom c
I'm trying to add an image field to the Recipe interface, but I don't
know how to bind the "photo" attribute to the image widget.
From reading the docs, I thought it was enough to specify the schema in
the Object() field.
I'm using Recipe because it's a well known example application, but I'd
To answer my own question - just for the record, in case
someone is having the same difficulties - I found redefining
__getstate__ in Family solved my problem:
...
from zope.security.proxy import removeSecurityProxy
class Family(Persistent):
...
def __getstate__(self):
s=Pers
Roger Ineichen was so kind to answer my questions about object
widgets (I had contacted him privately as I was not on this list yet.)
Basically I tried to get his mother/father/family example at
/Zope3/src/zope/app/form/browser/objectwidget.txt to work. - Besides
mother and father I added two simp