[Checkins] SVN: z3c.authenticator/trunk/ make sessionSetUp reusable, this should go to zope.session.testing once

Roger Ineichen roger at projekt01.ch
Mon Mar 31 09:49:28 EDT 2008


Log message for revision 85033:
  make sessionSetUp reusable, this should go to zope.session.testing once
  update TODO.txt

Changed:
  U   z3c.authenticator/trunk/TODO.txt
  U   z3c.authenticator/trunk/src/z3c/authenticator/credential.py
  U   z3c.authenticator/trunk/src/z3c/authenticator/testing.py

-=-
Modified: z3c.authenticator/trunk/TODO.txt
===================================================================
--- z3c.authenticator/trunk/TODO.txt	2008-03-31 11:36:46 UTC (rev 85032)
+++ z3c.authenticator/trunk/TODO.txt	2008-03-31 13:49:27 UTC (rev 85033)
@@ -3,3 +3,7 @@
 ====
 
 - implement nickName, email and phone?
+
+- check imports
+
+- check dependency in buildout setup

Modified: z3c.authenticator/trunk/src/z3c/authenticator/credential.py
===================================================================
--- z3c.authenticator/trunk/src/z3c/authenticator/credential.py	2008-03-31 11:36:46 UTC (rev 85032)
+++ z3c.authenticator/trunk/src/z3c/authenticator/credential.py	2008-03-31 13:49:27 UTC (rev 85033)
@@ -175,7 +175,9 @@
     To illustrate how a session plugin works, we'll first setup some session
     machinery:
 
+      >>> from zope.app.testing import placelesssetup
       >>> from z3c.authenticator.testing import sessionSetUp
+      >>> placelesssetup.setUp()
       >>> sessionSetUp()
 
     This lets us retrieve the same session info from any test request, which

Modified: z3c.authenticator/trunk/src/z3c/authenticator/testing.py
===================================================================
--- z3c.authenticator/trunk/src/z3c/authenticator/testing.py	2008-03-31 11:36:46 UTC (rev 85032)
+++ z3c.authenticator/trunk/src/z3c/authenticator/testing.py	2008-03-31 13:49:27 UTC (rev 85033)
@@ -20,7 +20,6 @@
 import zope.interface
 from zope.publisher.interfaces import IRequest
 from zope.app.testing import setup
-from zope.app.testing import placelesssetup
 
 from zope.session.interfaces import IClientId
 from zope.session.interfaces import IClientIdManager
@@ -52,7 +51,6 @@
 
 
 def sessionSetUp(session_data_container_class=RAMSessionDataContainer):
-    placelesssetup.setUp()
     zope.component.provideAdapter(TestClientId, (IRequest,), IClientId)
     zope.component.provideAdapter(Session, (IRequest,), ISession)
     zope.component.provideUtility(CookieClientIdManager(), IClientIdManager)



More information about the Checkins mailing list