[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/publisher/browser/metadirectives.py
The presentation service is gone.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Fri Sep 17 12:15:58 EDT 2004
Log message for revision 27580:
The presentation service is gone.
Use new LayerField to specify the layer. Also, the `layer` directive grows a
`base` attribute, which allows us to set the base interface for the layer.
Changed:
U Zope3/trunk/src/zope/app/publisher/browser/metadirectives.py
-=-
Modified: Zope3/trunk/src/zope/app/publisher/browser/metadirectives.py
===================================================================
--- Zope3/trunk/src/zope/app/publisher/browser/metadirectives.py 2004-09-17 16:15:56 UTC (rev 27579)
+++ Zope3/trunk/src/zope/app/publisher/browser/metadirectives.py 2004-09-17 16:15:57 UTC (rev 27580)
@@ -21,9 +21,10 @@
from zope.configuration.fields import GlobalObject, Tokens, Path, \
PythonIdentifier, MessageID
from zope.schema import TextLine, Text, Id
-from zope.app.security.fields import Permission
from zope.app.component.metadirectives import IBasicViewInformation
+from zope.app.component.fields import LayerField
+from zope.app.security.fields import Permission
#
# browser views
@@ -217,7 +218,7 @@
This is the basic information for all browser resources.
"""
- layer = TextLine(
+ layer = LayerField(
title=u"The layer the resource should be found in",
description=u"""
For information on layers, see the documentation for the skin
@@ -485,6 +486,12 @@
required=True
)
+ base = GlobalObject(
+ title=u"Name",
+ description=u"The name of the skin",
+ required=False
+ )
+
class ISkinDirective(Interface):
"""Defines a browser skin
"""
@@ -496,13 +503,13 @@
)
layers = Tokens(
- title=u"A list of layer names",
+ title=u"A list of layers",
description=u"""
This should be in order of lookup. Usually one of the layers
has the same name as the skin, and the last skin should be
'default', unless you want to completely override all views.
""",
- value_type=TextLine()
+ value_type=LayerField()
)
class IDefaultSkinDirective(Interface):
@@ -553,7 +560,7 @@
required=False
)
- layer = TextLine(
+ layer = LayerField(
title=u"The layer the icon should be found in",
description=u"""
For information on layers, see the documentation for the skin
More information about the Zope3-Checkins
mailing list