[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/renderer/ Removed sourcetype directive which was not used anymore since the

Stephan Richter srichter at cosmos.phy.tufts.edu
Sat May 15 07:32:23 EDT 2004


Log message for revision 24710:
Removed sourcetype directive which was not used anymore since the 
refactoring.



-=-
Modified: Zope3/trunk/src/zope/app/renderer/meta.zcml
===================================================================
--- Zope3/trunk/src/zope/app/renderer/meta.zcml	2004-05-15 06:27:46 UTC (rev 24709)
+++ Zope3/trunk/src/zope/app/renderer/meta.zcml	2004-05-15 11:32:22 UTC (rev 24710)
@@ -4,12 +4,6 @@
 
   <meta:directive
      namespace="http://namespaces.zope.org/renderer"
-     name="sourcetype"
-     schema=".metaconfigure.ISourceTypeDirective"
-     handler=".metaconfigure.sourcetype" />
-
-  <meta:directive
-     namespace="http://namespaces.zope.org/renderer"
      name="renderer"
      schema=".metaconfigure.IRendererDirective"
      handler=".metaconfigure.renderer" />

Modified: Zope3/trunk/src/zope/app/renderer/metaconfigure.py
===================================================================
--- Zope3/trunk/src/zope/app/renderer/metaconfigure.py	2004-05-15 06:27:46 UTC (rev 24709)
+++ Zope3/trunk/src/zope/app/renderer/metaconfigure.py	2004-05-15 11:32:22 UTC (rev 24710)
@@ -15,34 +15,11 @@
 
 $Id: metaconfigure.py,v 1.4 2003/11/21 17:10:52 jim Exp $
 """
+from zope.app import zapi
 from zope.app.component.metaconfigure import handler
-from zope.app.renderer.sourcetype import SourceTypes 
 from zope.configuration.fields import GlobalObject
 from zope.interface import Interface
-from zope.schema import TextLine
-from zope.component.servicenames import Presentation
 
-class ISourceTypeDirective(Interface):
-    """The renderers directive specifies how a particular source text can
-    be rendered for various view types. It also generates a registry
-    of available source types."""
-
-    interface = GlobalObject(
-        title=u"Interface",
-        description=u"Specifies an interface for of a particular source type.",
-        required=True)
-
-    class_ = GlobalObject(
-        title=u"Class",
-        description=u"Specifies the class that is implementing this " \
-                     "source type.",
-        required=True)
-
-    title = TextLine(
-        title=u"Title",
-        description=u"Provides a title for the source type.",
-        required=False)
-
 class IRendererDirective(Interface):
     """Register a renderer for a paricular output interface, such as
     IBrowserView."""
@@ -68,13 +45,6 @@
     _context.action(
         discriminator = ('view', sourceType, u'', for_, 'default'),
         callable = handler,
-        args = (Presentation, 'provideView',
+        args = (zapi.servicenames.Presentation, 'provideView',
                 sourceType, u'', for_, factory, 'default')
         )
-
-def sourcetype(_context, interface, class_, title=u''):
-    _context.action(
-        discriminator = ('source type', title, interface),
-        callable = SourceTypes.provide,
-        args = (title, interface, class_)
-        )

Modified: Zope3/trunk/src/zope/app/renderer/vocabulary.py
===================================================================
--- Zope3/trunk/src/zope/app/renderer/vocabulary.py	2004-05-15 06:27:46 UTC (rev 24709)
+++ Zope3/trunk/src/zope/app/renderer/vocabulary.py	2004-05-15 11:32:22 UTC (rev 24710)
@@ -18,7 +18,6 @@
 from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm
 
 from zope.app import zapi
-from zope.app.form.browser import DropdownWidget
 from zope.app.renderer.interfaces import ISource
 
 def SourceTypeVocabulary(context):




More information about the Zope3-Checkins mailing list