[Checkins] SVN: zope.app.publisher/trunk/src/zope/app/publisher/browser/metadirectives.py - Replace deprecated LayerField by GlobalInterface
Sidnei da Silva
sidnei at enfoldsystems.com
Mon Oct 13 14:13:29 EDT 2008
Log message for revision 92134:
- Replace deprecated LayerField by GlobalInterface
Changed:
U zope.app.publisher/trunk/src/zope/app/publisher/browser/metadirectives.py
-=-
Modified: zope.app.publisher/trunk/src/zope/app/publisher/browser/metadirectives.py
===================================================================
--- zope.app.publisher/trunk/src/zope/app/publisher/browser/metadirectives.py 2008-10-13 18:01:34 UTC (rev 92133)
+++ zope.app.publisher/trunk/src/zope/app/publisher/browser/metadirectives.py 2008-10-13 18:13:27 UTC (rev 92134)
@@ -24,7 +24,6 @@
from zope.security.zcml import Permission
from zope.app.component.metadirectives import IBasicViewInformation
-from zope.app.component.back35 import LayerField
from zope.app.publisher.browser.fields import MenuField
#
@@ -175,7 +174,7 @@
required=False
)
- layer = LayerField(
+ layer = GlobalInterface(
title=u"The layer the default view is declared for",
description=u"The default layer for which the default view is "
u"applicable. By default it is applied to all layers.",
@@ -227,7 +226,7 @@
This is the basic information for all browser resources.
"""
- layer = LayerField(
+ layer = GlobalInterface(
title=u"The layer the resource should be found in",
description=u"""
For information on layers, see the documentation for the skin
@@ -418,7 +417,7 @@
required=True
)
- layer = LayerField(
+ layer = GlobalInterface(
title=u"Layer",
description=u"The Layer for which the item is declared.",
required=False
@@ -567,7 +566,7 @@
required=False,
)
- layer = LayerField(
+ layer = GlobalInterface(
title=u"The layer the custom view is declared for",
description=u"The default layer for which the custom view is "
u"applicable. By default it is applied to all layers.",
@@ -669,7 +668,7 @@
'default', unless you want to completely override all views.
""",
required=False,
- value_type=LayerField()
+ value_type=GlobalInterface()
)
class IDefaultSkinDirective(Interface):
@@ -720,7 +719,7 @@
required=False
)
- layer = LayerField(
+ layer = GlobalInterface(
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 Checkins
mailing list