[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

2008-01-03 Thread john saponara
metal:fill-slot=body big tal:content=python: view.message()/big /div /body /html # edit.pt html metal:use-macro=context/@@standard_macros/view body div metal:fill-slot=body tal:content=view /div /body /html Christophe Combelles wrote: john saponara a écrit : hi

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

2008-01-04 Thread john saponara
, but that seems to be a reasonable way to access the application's container (all drivers and cars are put into the same 'LimoService' container for now). So how can I access the list of cars from the widget? And does the answer differ in add forms vs edit forms? Thanks! john saponara wrote

[Zope3-Users] how to model a 1-to-1 relation

2008-01-10 Thread john saponara
I want to allow the user to create car and driver objects in a limoService container. Car objects will stand alone, but each driver object should contain a car object by reference (not by value) and the driver add form should allow the user to choose which car the new driver object will have.

[Zope3-Users] zmi menu error

2008-01-14 Thread john saponara
I get reasonable edit screens for my car and driver classes when I use a url like limoService/car1/edit.html but when I try to add the edit screens as zmi menu entries I get an error: File C:\Python24\Lib\site-packages\zope\app\publisher\browser\menu.py, line 62, in getMenuItems

[Zope3-Users] UnpickleableError when adding object with reference

2008-01-15 Thread john saponara
I add a Limoservice object, then inside that object add a Car; then I add a Driver (which contains a Car), and the AddForm offers a dropdown with '(no value)' and my Car object. If I select the car from the dropdown I get an error: UnpickleableError: Cannot pickle type

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

2008-01-23 Thread john saponara
In order to try z3c.form under windows (winxpprosp2), I tried Stephan's instructions below but got an error during the buildout step: ImportError: No module named schemaless (Complete command sequence and error message is attached.) I deviated from the instructions in only two ways: 1. I