Date: Sat Oct 1 21:01:08 2005
New Revision: 3389
Fixed problem with Mixin in UserManager. The unit tests should now work again.
--- Webware/trunk/UserKit/UserManagerToFile.py (original)
+++ Webware/trunk/UserKit/UserManagerToFile.py Sat Oct 1 21:01:08 2005
@@ -95,8 +95,10 @@
def setUserClass(self, userClass):
""" Overridden to mix in UserMixIn to the class that is passed in. """
- from MiscUtils.MixIn import MixIn
- MixIn(userClass, UserMixIn)
+ # cz: doing so with MiscUtils.Mixin lead to errors later
+ # when pickling the user, so I'm doing it this way now:
+ if UserMixIn not in userClass.__bases__:
+ userClass.__bases__ = userClass.__bases__ + (UserMixIn,)
Get latest updates about Open Source Projects, Conferences and News.