start with explicit registration tls-sprint
authorsylvain.thenault@logilab.fr
Tue, 17 Feb 2009 16:57:19 +0100
branchtls-sprint
changeset 669 5d2132832f03
parent 668 61b2328f9ed9
child 670 6c332f5c969c
start with explicit registration
goa/appobjects/sessions.py
--- a/goa/appobjects/sessions.py	Tue Feb 17 16:57:02 2009 +0100
+++ b/goa/appobjects/sessions.py	Tue Feb 17 16:57:19 2009 +0100
@@ -17,8 +17,8 @@
 
 from cubicweb import UnknownEid, BadConnectionId
 from cubicweb.dbapi import Connection, ConnectionProperties, repo_connect
+from cubicweb.selectors import none_rset, match_user_groups
 from cubicweb.server.session import Session
-from cubicweb.common.selectors import none_rset, match_user_groups
 from cubicweb.web import InvalidSession
 from cubicweb.web.application import AbstractSessionManager
 from cubicweb.web.application import AbstractAuthenticationManager
@@ -269,4 +269,9 @@
         self.w(u'%s repository sessions closed<br/>\n' % nbclosed)
         self.w(u'%s remaining sessions<br/>\n' % remaining)
         self.w(u'</div>')
+
         
+def registration_callback(vreg):
+    vreg.register(SessionsCleaner)
+    vreg.register(GAEAuthenticationManager, clear=True)
+    vreg.register(GAEPersistentSessionManager, clear=True)