[Zope3-checkins] CVS: Zope3/src/zope/app/component - metaconfigure.py:1.37

Stephan Richter srichter at cosmos.phy.tufts.edu
Mon Mar 29 00:12:34 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/component
In directory cvs.zope.org:/tmp/cvs-serv30317/src/zope/app/component

Modified Files:
	metaconfigure.py 
Log Message:


Add a function attribute to proxyView, so that we know about the factory being
used, which is interesting for documentation.




=== Zope3/src/zope/app/component/metaconfigure.py 1.36 => 1.37 ===
--- Zope3/src/zope/app/component/metaconfigure.py:1.36	Tue Mar 23 17:08:16 2004
+++ Zope3/src/zope/app/component/metaconfigure.py	Mon Mar 29 00:12:34 2004
@@ -289,6 +289,8 @@
 
         def proxyView(context, request, factory=factory[-1], checker=checker):
             return proxify(factory(context, request), checker)
+        # Keep track of the factory for documentation
+        proxyView.factory = factory[-1]
 
         factory[-1] = proxyView
 




More information about the Zope3-Checkins mailing list