[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/session/configure.zcml Be more explicit when registering the ISession adapter.

Marius Gedminas marius at pov.lt
Tue Sep 5 09:10:01 EDT 2006


Log message for revision 69973:
  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.
  
  

Changed:
  U   Zope3/trunk/src/zope/app/session/configure.zcml

-=-
Modified: Zope3/trunk/src/zope/app/session/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/session/configure.zcml	2006-09-05 13:06:56 UTC (rev 69972)
+++ Zope3/trunk/src/zope/app/session/configure.zcml	2006-09-05 13:10:00 UTC (rev 69973)
@@ -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