changeset 4174:3c4c1424165a

Just append classes on class-change (for later inspection)
author Florian Krupicka <florian.krupicka@googlemail.com>
date Tue, 17 Jun 2008 18:32:03 +0200
parents 051391d5662d
children 5bcd612588fc
files MoinMoin/web/contexts.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/web/contexts.py	Tue Jun 17 18:29:35 2008 +0200
+++ b/MoinMoin/web/contexts.py	Tue Jun 17 18:32:03 2008 +0200
@@ -69,13 +69,11 @@
     def become(self, cls):
         if self.__class__ is cls:
             return False
-        elif cls in self.personalities:
-            self.__class__ = cls
-            return True
         else:
             self.personalities.append(cls)
             self.__class__ = cls
-            self.initialize()
+            if cls in self.personalities:
+                self.initialize()
             return True
 
 class XMLRPCContext(Context):