[rhmessaging-commits] rhmessaging commits: r3305 - mgmt/trunk/wooly/python/wooly.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Fri Apr 17 13:01:40 EDT 2009


Author: eallen
Date: 2009-04-17 13:01:40 -0400 (Fri, 17 Apr 2009)
New Revision: 3305

Modified:
   mgmt/trunk/wooly/python/wooly/pages.py
Log:
Set user_session and background in session used for background updates

Modified: mgmt/trunk/wooly/python/wooly/pages.py
===================================================================
--- mgmt/trunk/wooly/python/wooly/pages.py	2009-04-17 15:00:03 UTC (rev 3304)
+++ mgmt/trunk/wooly/python/wooly/pages.py	2009-04-17 17:01:40 UTC (rev 3305)
@@ -168,6 +168,7 @@
     def render_widgets(self, session):
         writer = Writer()
         sess = self.session.get(session)
+
         widgets = self.widgets.get(session)
 
         for widget in widgets:
@@ -188,6 +189,12 @@
         def do_unmarshal(self, string):
             return Session.unmarshal(self.app, string)
 
+        def get(self, session):
+            sess = super(UpdatePage.SessionParameter, self).get(session)
+            sess.user_session = session.user_session
+            sess.background = True
+            return sess
+
     class WidgetParameter(Parameter):
         def __init__(self, app, name, page):
             self.page = page




More information about the rhmessaging-commits mailing list