[Zope3-checkins] CVS: Zope3/src/zope/app/renderer - configure.zcml:1.10 vocabulary.py:1.9

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Apr 29 08:20:16 EDT 2004


Update of /cvs-repository/Zope3/src/zope/app/renderer
In directory cvs.zope.org:/tmp/cvs-serv376/src/zope/app/renderer

Modified Files:
	configure.zcml vocabulary.py 
Log Message:
Registered a special widget for Choices displaying ISourceTypeVocabulary
vocabularies. This means that we do not need a special browser:widget 
directive for providing the custom source type widget.


=== Zope3/src/zope/app/renderer/configure.zcml 1.9 => 1.10 ===
--- Zope3/src/zope/app/renderer/configure.zcml:1.9	Sat Apr 24 19:19:52 2004
+++ Zope3/src/zope/app/renderer/configure.zcml	Thu Apr 29 08:19:39 2004
@@ -19,6 +19,16 @@
         attributes="title"/>
   </content>
 
+  <view
+      type="zope.publisher.interfaces.browser.IBrowserRequest"
+      for="zope.schema.interfaces.IChoiceSequence
+           .vocabulary.ISourceTypeVocabulary"
+      provides="zope.app.form.interfaces.IInputWidget"
+      factory=".vocabulary.SourceTypeEditWidget"
+      permission="zope.Public"
+      />
+  
+
   <!-- Plain Text Support -->
 
   <factory


=== Zope3/src/zope/app/renderer/vocabulary.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/renderer/vocabulary.py:1.8	Sat Apr 24 19:19:52 2004
+++ Zope3/src/zope/app/renderer/vocabulary.py	Thu Apr 29 08:19:39 2004
@@ -41,7 +41,7 @@
 
 class SourceTypeVocabulary(object):
 
-    implements(IVocabulary, IVocabularyTokenized)
+    implements(ISourceTypeVocabulary)
 
     def __init__(self, context):
         self.types = list(zapi.getFactoriesFor(None, ISource))




More information about the Zope3-Checkins mailing list