[Zope3-checkins] CVS: zopeproducts/zwiki - interfaces.py:1.11

Stephan Richter srichter@cosmos.phy.tufts.edu
Thu, 31 Jul 2003 14:55:11 -0400


Update of /cvs-repository/zopeproducts/zwiki
In directory cvs.zope.org:/tmp/cvs-serv19727

Modified Files:
	interfaces.py 
Log Message:
Make use of the source type vocabulary.


=== zopeproducts/zwiki/interfaces.py 1.10 => 1.11 ===
--- zopeproducts/zwiki/interfaces.py:1.10	Thu Jul 31 14:00:48 2003
+++ zopeproducts/zwiki/interfaces.py	Thu Jul 31 14:54:35 2003
@@ -19,6 +19,7 @@
 """
 from zope.interface import Interface
 from zope.schema import Text, TextLine, List
+from zope.schema.vocabulary import VocabularyField
 
 from zope.app.interfaces.container import IContentContainer
 
@@ -45,11 +46,12 @@
         default=u"",
         required=True)
 
-    type = TextLine(
+    type = VocabularyField(
         title=_(u"Source Type"),
         description=_(u"Type of the source text, e.g. structured text"),
         default=u"reStructured Text (reST)",
-        required=True)
+        required = True,
+        vocabulary = "SourceTypes")
 
     def append(source):
         """Append some text to the existing source text."""