[Zope3-checkins]
SVN: Zope3/branches/3.3/src/zope/app/session/configure.zcml
Be more explicit when registering the ISession adapter.
Marius Gedminas
marius at pov.lt
Tue Sep 5 09:11:05 EDT 2006
Log message for revision 69974:
Be more explicit when registering the ISession adapter.
There are Zope3-based applications in the wild that load the ZCML for
zope.app.session more than once in unit tests (SchoolTool is one). This
breaks the tests for those apps, because CleanUp().cleanUp() doesn't undo the
effects of <class><implements /></class> ZCML directive, and the <adapter />
directive sees zope.app.session.Session as implementing two interfaces instead
of just one.
Backported from trunk with
svn merge -r 69972:69973 svn+ssh://svn.zope.org/repos/main/Zope3/trunk .
Changed:
U Zope3/branches/3.3/src/zope/app/session/configure.zcml
-=-
Modified: Zope3/branches/3.3/src/zope/app/session/configure.zcml
===================================================================
--- Zope3/branches/3.3/src/zope/app/session/configure.zcml 2006-09-05 13:10:00 UTC (rev 69973)
+++ Zope3/branches/3.3/src/zope/app/session/configure.zcml 2006-09-05 13:11:05 UTC (rev 69974)
@@ -11,6 +11,7 @@
<adapter
factory=".session.Session"
+ provides="zope.app.session.interfaces.ISession"
permission="zope.Public"
/>
More information about the Zope3-Checkins
mailing list