[Zope3-checkins] CVS: Zope3/src/zope/app/content - configure.zcml:1.14.2.1
Steve Alexander
steve@cat-box.net
Wed, 14 May 2003 13:44:41 -0400
Update of /cvs-repository/Zope3/src/zope/app/content
In directory cvs.zope.org:/tmp/cvs-serv32636/src/zope/app/content
Modified Files:
Tag: stevea-decorators-branch
configure.zcml
Log Message:
Decorators are now really roughly integrated into zope on this branch.
Still to do:
* The decorator registry needs an interface and some tests.
* The decorator registry should be using a type registry rather than
a simple dict, so that you don't need to keep declaring decorators
for all the different subtypes of a container that doesn't manage
its own context.
* Fix various tests that explicitly use ZopeContainerAdapter.
* Document use of decorators in Zope 3.
* Get this work reviewed and discussed.
The first three points should be complete by the end of tomorrow.
=== Zope3/src/zope/app/content/configure.zcml 1.14 => 1.14.2.1 ===
--- Zope3/src/zope/app/content/configure.zcml:1.14 Tue May 6 15:51:32 2003
+++ Zope3/src/zope/app/content/configure.zcml Wed May 14 13:44:10 2003
@@ -13,7 +13,7 @@
<implements
interface="zope.app.interfaces.annotation.IAttributeAnnotatable"
/>
-
+ <decorate decorator="zope.app.container.contextdecorator" type="context" />
<factory
id="Folder"
permission="zope.ManageContent"
@@ -68,6 +68,7 @@
<implements interface="zope.app.interfaces.container.IContentContainer" />
+ <decorate decorator="zope.app.container.contextdecorator" type="context" />
<require like_class="zope.app.content.folder.Folder" />
<implements