Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
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,)