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