Re: [Zope3-Users] want to use ObjectWidget and default add form

2008-01-04 Thread john saponara
[the subject has really become: how can a custom widget access content objects and containers?] Hi, I'm trying to model a 1-to-1 relationship in zope3: a Driver class that contains an instance of a Car class. I model the car as a schema.Object inside the driver interface: class

Re: [Zope3-Users] want to use ObjectWidget and default add form

2008-01-03 Thread john saponara
thanks christophe. while looking for an example of how to use CustomWidgetFactory, i found a comment on the web about formlib replacing browser:editform/addform (at http://faassen.n--tree.net/blog/view/weblog/2005/09/06/0) and so i'm now using the instructions in zope/formlib/form.txt.

[Zope3-Users] want to use ObjectWidget and default add form

2007-12-29 Thread john saponara
hi, please point me to an example showing how to use ObjectWidget with a default add form. in case there is no example, perhaps my failing attempt below could serve as one, once it's modified to work. # interfaces.py from zope.interface import

Re: [Zope3-Users] want to use ObjectWidget and default add form

2007-12-29 Thread Christophe Combelles
john saponara a écrit : hi, please point me to an example showing how to use ObjectWidget with a default add form. in case there is no example, perhaps my failing attempt below could serve as one, once it's modified to work. [...] ComponentLookupError: ((zope.schema._field.Object object