[Twisted-web] SessionWrapper componentized

Andrea Arcangeli andrea at cpushare.com
Fri Jan 14 17:21:07 MST 2005


I'd need the SessionWrapper componentized so I can use compy to store
global data for the whole site under the sessionwrapper.

Or is there a better way to do it?

Thanks.

Index: nevow/guard.py
===================================================================
--- nevow/guard.py	(revision 1084)
+++ nevow/guard.py	(working copy)
@@ -175,7 +175,7 @@
         request.finish()
         return ''
 
-class SessionWrapper:
+class SessionWrapper(components.Componentized):
 
     __implements__ = inevow.IResource
 
@@ -198,6 +198,7 @@
     secureCookies = True
 
     def __init__(self, portal, cookieKey=None, mindFactory=None, credInterface=None, useCookies=None):
+        components.Componentized.__init__(self)
         self.portal = portal
         if cookieKey is None:
             cookieKey = "woven_session_" + _sessionCookie()



More information about the Twisted-web mailing list