server/session.py
branchstable
changeset 2874 acdd8d8c2cff
parent 2781 4e1ad9d6a3e7
child 2880 bfc8e1831290
child 2940 db2fb2907389
child 3074 141cfaac6b97
--- a/server/session.py	Mon Aug 17 11:06:43 2009 +0200
+++ b/server/session.py	Mon Aug 17 12:11:04 2009 +0200
@@ -330,7 +330,7 @@
         try:
             csession = self._threaddata.childsession
         except AttributeError:
-            if self.is_super_session:
+            if isinstance(self, (ChildSession, InternalSession)):
                 csession = self
             else:
                 csession = ChildSession(self)