[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

Re: [Zope3-Users] UnpickleableError when adding object with reference

2008-01-15 Thread john saponara
That works great, thank you Thierry Thierry Florac wrote: Le mardi 15 janvier 2008 à 07:05 -0500, john saponara a écrit : 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)'

[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 objects Whereas if I lea

[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 re

[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.

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

2008-01-04 Thread john saponara
]) I dont really need to access the form instance, 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

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

2008-01-03 Thread john saponara
self.context.model, self.context.nPassengers) class DriverView(object): def message(self): if self.context.car: carInfo=self.context.car.__dict__ else: carInfo=None return 'driver drives car model %s' % (carInfo) from zope.app.form.browser.widget import SimpleInputWidget class CarsListWidget(SimpleInputWidget): def cars(self): parent=zapi.getParent(self.co

[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 Interf