[Zope3-checkins] CVS: Zope3/src/zope/proxy/context - decorators.txt:1.1.2.6
Steve Alexander
steve@cat-box.net
Mon, 19 May 2003 04:21:01 -0400
Update of /cvs-repository/Zope3/src/zope/proxy/context
In directory cvs.zope.org:/tmp/cvs-serv3358/src/zope/proxy/context
Modified Files:
Tag: stevea-decorators-branch
decorators.txt
Log Message:
Added ascii art UML diagram.
=== Zope3/src/zope/proxy/context/decorators.txt 1.1.2.5 => 1.1.2.6 ===
--- Zope3/src/zope/proxy/context/decorators.txt:1.1.2.5 Sun May 18 17:19:57 2003
+++ Zope3/src/zope/proxy/context/decorators.txt Mon May 19 04:21:00 2003
@@ -72,7 +72,22 @@
The following diagram shows how decoration of folders works, as a design, and
as objects at runtime.
-[ insert class diagram and object diagram ]
+
+ [IFolder]<................ ....>[IZopeContainer]
+ ^ : : ^
+ : : : :
+ +--------+ : : +------------------------+
+ | Folder |-+ +------------------------+ +--| ZopeContainerDecorator |
+ +--------+ +-<>| ContextDecoratedFolder |<>-+ +------------------------+
+ +------------------------+
+
+[Folder realizes IFolder. ZopeContainerDecorator realizes IZopeContainer.
+ The notional class ContextDecoratedFolder, made up at runtime by the
+ decorator composite object, realizes both IFolder and IZopeContainer]
+
+
+[Insert decorator object diagram.]
+
When the wrapper is asked for a particular attribute, it does the following: