[Zope3-checkins] CVS: Zope3/src/zope/app/wiki - interfaces.py:1.4
Stephan Richter
srichter at cosmos.phy.tufts.edu
Sat Apr 24 19:21:00 EDT 2004
Update of /cvs-repository/Zope3/src/zope/app/wiki
In directory cvs.zope.org:/tmp/cvs-serv30800/src/zope/app/wiki
Modified Files:
interfaces.py
Log Message:
Use Choice instead of VocabularyField.
=== Zope3/src/zope/app/wiki/interfaces.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/wiki/interfaces.py:1.3 Wed Mar 3 05:38:57 2004
+++ Zope3/src/zope/app/wiki/interfaces.py Sat Apr 24 19:20:30 2004
@@ -18,8 +18,7 @@
$Id$
"""
from zope.interface import Interface
-from zope.schema import TextLine, List, SourceText
-from zope.schema.vocabulary import VocabularyField
+from zope.schema import TextLine, List, SourceText, Choice
from zope.schema import Field
from zope.app.container.interfaces import IContained
@@ -47,7 +46,7 @@
default=u"",
required=True)
- type = VocabularyField(
+ type = Choice(
title=_(u"Source Type"),
description=_(u"Type of the source text, e.g. structured text"),
default=u"zope.source.rest",
@@ -73,7 +72,7 @@
default=u"",
required=True)
- type = VocabularyField(
+ type = Choice(
title=_(u"Source Type"),
description=_(u"Type of the source text, e.g. structured text"),
default=u"zope.source.rest",
More information about the Zope3-Checkins
mailing list