[Zope3-dev] Poll example for ObjectWidget

Peter Mayne PeterMayne at ap.spherion.com
Tue Sep 28 23:54:04 EDT 2004


I'm trying to emulate the Archetypes Reference field using 
zope.schema.Object. The plan is to write a custom widget to edit and 
display the Object field.

In the meantime, I've discovered the Poll example in 
zope/app/form/browser/widgets.txt. However, it seems to be 
non-functional. Z3 doesn't like the permission attribute in the factory 
tag in configure.zcml, and after I remove it and try to add a Poll, I get:

.
.
File 
"/tmp/ZopeX3-3.0.0c1/build/lib.linux-i686-2.3/zope/app/form/__init__.py", 
line 92, in __call__
TypeError: __init__() takes at least 4 arguments (3 given)

Of course, there could be a problem with my cutting and pasting. I 
looked at http://svn.zope.org/Zope3/trunk/src/zope/app/demo/, but 
there's no poll demo there.

Is the Poll demo online somewhere so I can study it?

Thanks.

PJDM
-- 
Peter Mayne
Spherion Technology Solutions
Canberra, ACT, Australia
"You're given the form, but you have to write the sonnet yourself.
What you say is completely up to you." - Mrs. Whatsit



More information about the Zope3-dev mailing list