[Checkins] SVN: zope.app.container/trunk/ - Remove usage of deprecated LayerField

Sidnei da Silva sidnei at enfoldsystems.com
Mon Oct 13 15:08:27 EDT 2008


Log message for revision 92147:
   - Remove usage of deprecated LayerField

Changed:
  U   zope.app.container/trunk/CHANGES.txt
  U   zope.app.container/trunk/src/zope/app/container/browser/metaconfigure.py

-=-
Modified: zope.app.container/trunk/CHANGES.txt
===================================================================
--- zope.app.container/trunk/CHANGES.txt	2008-10-13 19:04:00 UTC (rev 92146)
+++ zope.app.container/trunk/CHANGES.txt	2008-10-13 19:08:27 UTC (rev 92147)
@@ -2,10 +2,10 @@
 CHANGES
 =======
 
-
 3.6.1dev (unreleased)
 ---------------------
 
+- Removed usage of deprecated LayerField
 - Bug: Error thrown during __setitem__ for an ordered container leaves
   bad key in order
 - fixed #238579 / #163149: error with unicode traversing

Modified: zope.app.container/trunk/src/zope/app/container/browser/metaconfigure.py
===================================================================
--- zope.app.container/trunk/src/zope/app/container/browser/metaconfigure.py	2008-10-13 19:04:00 UTC (rev 92146)
+++ zope.app.container/trunk/src/zope/app/container/browser/metaconfigure.py	2008-10-13 19:08:27 UTC (rev 92147)
@@ -19,14 +19,13 @@
 __docformat__ = 'restructuredtext'
 
 from zope.interface import Interface
-from zope.configuration.fields import GlobalObject
+from zope.configuration.fields import GlobalObject, GlobalInterface
 from zope.publisher.interfaces.browser import IDefaultBrowserLayer
 from zope.schema import Id
 from zope.security.zcml import Permission
 from zope.app.publisher.browser.viewmeta import page, view
 from zope.app.container.browser.contents import Contents
 from zope.app.container.browser.adding import Adding
-from zope.app.component.back35 import LayerField
 from zope.app.container.i18n import ZopeMessageFactory as _
 
 
@@ -53,7 +52,7 @@
         title=u"The permission needed for add page.",
         required=False)
 
-    layer = LayerField(
+    layer = GlobalInterface(
         title=_("The layer the view is in."),
         description=_("""A skin is composed of layers. It is common to put
         skin specific views in a layer named after the skin. If the 'layer'



More information about the Checkins mailing list