[Zope3-Users] z3c.selectWidget terms without vocabulary

2008-09-30 Thread kevin gill
I want to create a select widget based on a field which does not have a vocabulary. The possible values are determined based on the context or the view. How do I configure the z3c SelectWidget to pick up the terms from a set of terms I provide, rather than looking to the field. I see from the

Re: [Zope3-Users] z3c.selectWidget terms without vocabulary

2008-09-30 Thread kevin gill
OK, I have it working now. Here is what I did... 1. Subclass the schema type to create a specific class for my field, e.g. class LocalChoice(zope.schema.Choice): Marks this field uniquely 2. Make a new class based on z3c.form.terms.ChoiceTerms, and register it for the view and the