[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/services - service.py:1.1.2.4
Jim Fulton
jim@zope.com
Tue, 24 Dec 2002 18:20:56 -0500
Update of /cvs-repository/Zope3/src/zope/app/interfaces/services
In directory cvs.zope.org:/tmp/cvs-serv29250/src/zope/app/interfaces/services
Modified Files:
Tag: NameGeddon-branch
service.py
Log Message:
moved icon image files to the view hoerarchy and fixed up some zcml
=== Zope3/src/zope/app/interfaces/services/service.py 1.1.2.3 => 1.1.2.4 ===
--- Zope3/src/zope/app/interfaces/services/service.py:1.1.2.3 Mon Dec 23 18:22:19 2002
+++ Zope3/src/zope/app/interfaces/services/service.py Tue Dec 24 18:20:25 2002
@@ -15,6 +15,14 @@
$Id$
"""
+__metaclass__ = type
+
+from zope.publisher.interfaces.browser import IBrowserPresentation
+from zope.interface import Interface
+from zope.app.component.interfacefield import InterfaceField
+from zope.schema import BytesLine
+from zope.component.interfaces import IPresentation
+from zope.app.interfaces.container import IContainer
from zope.interface import Interface, Attribute
@@ -125,4 +133,37 @@
The name of a service configuration is used to determine the service
type.
+ """
+
+class IViewPackageInfo(Interface):
+
+ forInterface = InterfaceField(
+ title = u"For interface",
+ description = u"The interface of the objects being viewed",
+ required = True,
+ )
+
+ presentationType = InterfaceField(
+ title = u"Presentation type",
+ description = u"The presentation type of a view",
+ required = True,
+ type = IPresentation,
+ default = IBrowserPresentation,
+ )
+
+ factoryName = BytesLine(
+ title=u"The dotted name of a factory for creating the view",
+ required = True,
+ )
+
+ layer = BytesLine(
+ title = u"Layer",
+ description = u"The skin layer the view is registered for",
+ required = False,
+ min_length = 1,
+ default = "default",
+ )
+
+class IViewPackage(IViewPackageInfo, IContainer):
+ """Sub-packages that contain templates that are registered as views
"""