[Zope3-checkins] CVS: Zope3/src/zope/app/bundle - __init__.py:1.1
configure.zcml:1.1 interfaces.py:1.1
Stephan Richter
srichter at cosmos.phy.tufts.edu
Wed Mar 10 08:11:14 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/bundle
In directory cvs.zope.org:/tmp/cvs-serv31386/src/zope/app/bundle
Added Files:
__init__.py configure.zcml interfaces.py
Log Message:
Moved bundles to zope.app.bundle. Noone uses this code, so I did not provide
module aliases.
=== Added File Zope3/src/zope/app/bundle/__init__.py ===
##############################################################################
#
# Copyright (c) 2003 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.
#
##############################################################################
"""The basic bundle.
$Id: __init__.py,v 1.1 2004/03/10 13:11:13 srichter Exp $
"""
from zope.app.container.btree import BTreeContainer
from interfaces import IBundle
from zope.app.services.registration import RegistrationManagerContainer
from zope.interface import implements
class Bundle(RegistrationManagerContainer, BTreeContainer):
implements(IBundle)
=== Added File Zope3/src/zope/app/bundle/configure.zcml ===
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:fssync="http://namespaces.zope.org/fssync">
<content class=".Bundle">
<factory />
<require
permission="zope.View"
interface="zope.app.container.interfaces.IReadContainer" />
<require
permission="zope.ManageServices"
interface="zope.app.container.interfaces.IWriteContainer"
attributes="getRegistrationManager resolve"
/>
<implements
interface="zope.app.interfaces.annotation.IAttributeAnnotatable"
/>
</content>
<fssync:adapter
class=".Bundle"
factory="zope.fssync.server.entryadapter.DirectoryAdapter"
/>
<include package=".browser" />
</configure>
=== Added File Zope3/src/zope/app/bundle/interfaces.py ===
##############################################################################
#
# Copyright (c) 2003 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 bundles.
$Id: interfaces.py,v 1.1 2004/03/10 13:11:13 srichter Exp $
"""
from zope.app.container.interfaces import IContainer
from zope.app.interfaces.services.registration \
import IRegistrationManagerContainer
class IBundle(IContainer, IRegistrationManagerContainer):
"""Component and component registration containers."""
More information about the Zope3-Checkins
mailing list