[Zope3-checkins] CVS: Zope3/src/zope/app/component -
metaconfigure.py:1.38
Stephan Richter
srichter at cosmos.phy.tufts.edu
Mon Mar 29 21:01:44 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/component
In directory cvs.zope.org:/tmp/cvs-serv12989/src/zope/app/component
Modified Files:
metaconfigure.py
Log Message:
Store the factory that represents the adapter as a function attribute, named
'factory'. This way the documentation can be much better.
=== Zope3/src/zope/app/component/metaconfigure.py 1.37 => 1.38 ===
--- Zope3/src/zope/app/component/metaconfigure.py:1.37 Mon Mar 29 00:12:34 2004
+++ Zope3/src/zope/app/component/metaconfigure.py Mon Mar 29 21:01:43 2004
@@ -152,6 +152,8 @@
for f in factories:
ob = f(ob)
return ob
+ # Store the original factory for documentation
+ factory.factory = factories[0]
_context.action(
discriminator = ('adapter', for_, provides, name),
More information about the Zope3-Checkins
mailing list