[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/services - folder.py:1.1 pagefolder.py:1.1 service.py:1.11 package.py:NONE
Jim Fulton
jim@zope.com
Sun, 23 Mar 2003 11:46:14 -0500
Update of /cvs-repository/Zope3/src/zope/app/interfaces/services
In directory cvs.zope.org:/tmp/cvs-serv2186/src/zope/app/interfaces/services
Modified Files:
service.py
Added Files:
folder.py pagefolder.py
Removed Files:
package.py
Log Message:
Renamed "packages" to "site-management folders".
Reanemd "view sub-packages" to "page folders".
=== Added File Zope3/src/zope/app/interfaces/services/folder.py ===
##############################################################################
#
# Copyright (c) 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Interfaces for packages.
$Id: folder.py,v 1.1 2003/03/23 16:45:44 jim Exp $
"""
from zope.app.interfaces.container import IAdding, IContainer
from zope.app.interfaces.services.service import IComponentManager
class ISiteManagementFolder(IContainer):
"""Component and component configuration containers."""
class ISiteManagementFolders(IContainer, IComponentManager):
"""A collection of ISiteManagementFolder objects.
An ISiteManagementFolders object supports simple containment as
well as package query and lookup.
"""
class ISiteManagementFolderAdding(IAdding):
"""A special package that is not content but is similar to a folder.
The SiteManagementFolder Adding is special, since it is not part
of the content namespace, but has a similar functionality as a
Folder. Therefore there are views that overlap; this interface was
created so that there are no configuration conflicts.
"""
=== Added File Zope3/src/zope/app/interfaces/services/pagefolder.py ===
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Page Folder interfaces
Page folders support easy creation and configuration of page views
using folders of templates.
$Id: pagefolder.py,v 1.1 2003/03/23 16:45:44 jim Exp $
"""
from zope.app.component.interfacefield import InterfaceField
from zope.schema import BytesLine
from zope.app.interfaces.container import IContainer
from zope.app.security.permission import PermissionField
from zope.interface import Interface
class IPageFolderInfo(Interface):
"""Default configuration information for page folders
This information is used to configure the pages in the folder.
"""
forInterface = InterfaceField(
title = u"For interface",
description = u"The interface of the objects being viewed",
required = True,
)
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",
)
permission = PermissionField(
title=u"Permission",
description=u"The permission required to use the view",
required = True,
)
class IPageFolder(IPageFolderInfo, IContainer):
"""Sub-packages that contain templates that are registered as page views
"""
=== Zope3/src/zope/app/interfaces/services/service.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/interfaces/services/service.py:1.10 Tue Mar 18 16:02:22 2003
+++ Zope3/src/zope/app/interfaces/services/service.py Sun Mar 23 11:45:44 2003
@@ -18,12 +18,8 @@
__metaclass__ = type
from zope.publisher.interfaces.browser import IBrowserPresentation
-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.app.security.permission import PermissionField
-from zope.interface import Interface, Attribute
+from zope.interface import Interface
from zope.component.interfaces import IServiceService
from zope.app.interfaces.services import configuration
@@ -129,35 +125,4 @@
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,
- )
-
- 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",
- )
-
- permission = PermissionField(
- title=u"Permission",
- description=u"The permission required to use the view",
- required = True,
- )
-
-class IViewPackage(IViewPackageInfo, IContainer):
- """Sub-packages that contain templates that are registered as views
"""
=== Removed File Zope3/src/zope/app/interfaces/services/package.py ===