# HG changeset patch # User Sylvain Thénault # Date 1250503864 -7200 # Node ID acdd8d8c2cff2720b43f0fb5cb638955f68f3202 # Parent 51bcd8e8f65c8ea6331c8f08bed6c507790a972f [session] use isinstance instead of testing value of is_super_session since we hack it in the add_relation method diff -r 51bcd8e8f65c -r acdd8d8c2cff server/session.py --- 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)