[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/component/metadirectives.py The presentation service is gone.

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Sep 17 12:16:08 EDT 2004


Log message for revision 27585:
  
  The presentation service is gone.
  
  Use new LayerField to specify the layer.
  
  


Changed:
  U   Zope3/trunk/src/zope/app/component/metadirectives.py


-=-
Modified: Zope3/trunk/src/zope/app/component/metadirectives.py
===================================================================
--- Zope3/trunk/src/zope/app/component/metadirectives.py	2004-09-17 16:16:06 UTC (rev 27584)
+++ Zope3/trunk/src/zope/app/component/metadirectives.py	2004-09-17 16:16:08 UTC (rev 27585)
@@ -22,6 +22,7 @@
 import zope.schema
 
 import zope.app.security.fields
+import zope.app.component.fields
 
 class IBasicComponentInformation(zope.interface.Interface):
 
@@ -65,7 +66,7 @@
         required=False
         )
 
-    layer = zope.schema.TextLine(
+    layer = zope.app.component.fields.LayerField(
         title=u"The layer the view is in.",
         description=u"""
         A skin is composed of layers. It is common to put skin
@@ -322,7 +323,7 @@
                          IBasicResourceInformation):
     """Register a resource"""
     
-    layer = zope.schema.TextLine(
+    layer = zope.app.component.fields.LayerField(
         title=u"The layer the resource is in.",
         required=False
         )



More information about the Zope3-Checkins mailing list