Re: [Zope3-Users] Vocabularies and Zope3-svn

2006-03-21 Thread Frank Burkhardt
Hi, On Tue, Mar 21, 2006 at 07:49:21AM -0500, Stephan Richter wrote: > On Tuesday 21 March 2006 07:34, Frank Burkhardt wrote: > > I tried some hours modifying the "RedirectTargetTypes" class with > > implements and classProvides but it didn't work. How am I supposed to write > > a simple vocabular

[Zope3-Users] Vocabularies and Zope3-svn

2006-03-21 Thread Frank Burkhardt
Hi, I've got some simple vocabularies like this one: [vocabularies.py] class RedirectTargetTypes(SimpleVocabulary): def __init__(self,context): targettypes={ 'generic url':_(u"Arbitrary URL"), 'local uid':_(u"Local UID or Permalink"), 'local url':_(u"Local URL

Re: [Zope3-Users] Vocabularies and Zope3-svn

2006-03-21 Thread Stephan Richter
On Tuesday 21 March 2006 07:34, Frank Burkhardt wrote: > I tried some hours modifying the "RedirectTargetTypes" class with > implements and classProvides but it didn't work. How am I supposed to write > a simple vocabulary the new way? classProvides(zope.app.schema.interfaces.IVocabularyFactory) i