[Checkins] SVN: z3c.jbot/trunk/z3c/jbot/metadirectives.py The layer field was just app-level sugar on a global object (register the layer with the application framework). We definitely don't want to engage in that (and it's deprecated, appearently).
Malthe Borch
mborch at gmail.com
Thu Sep 24 10:03:59 EDT 2009
Log message for revision 104481:
The layer field was just app-level sugar on a global object (register the layer with the application framework). We definitely don't want to engage in that (and it's deprecated, appearently).
Changed:
U z3c.jbot/trunk/z3c/jbot/metadirectives.py
-=-
Modified: z3c.jbot/trunk/z3c/jbot/metadirectives.py
===================================================================
--- z3c.jbot/trunk/z3c/jbot/metadirectives.py 2009-09-24 11:21:32 UTC (rev 104480)
+++ z3c.jbot/trunk/z3c/jbot/metadirectives.py 2009-09-24 14:03:59 UTC (rev 104481)
@@ -1,6 +1,6 @@
from zope.interface import Interface
from zope.configuration import fields
-from zope.app.component.back35 import LayerField
+from zope.configuration.fields import GlobalObject
class ITemplateOverridesDirective(Interface):
"""Directive which registers a directory with template overrides."""
@@ -9,7 +9,7 @@
title=u"Path to directory",
required=True)
- layer = LayerField(
+ layer = GlobalObject(
title=u"The layer the overrides should be enabled for",
description=u"By default overrides are used for all layers.",
required=False
More information about the checkins
mailing list