LoginManager and Zope 2.3
Has anyone tried get the LoginManager to work with Zope 2.3a1? When I try the LoginManager product is broken with error message: LoginManager Import Traceback Traceback (innermost last): File "/usr/lib/Zope-2.3.0a1-src/lib/python/OFS/Application.py", line 405, in import_products product=__import__(pname, global_dict, global_dict, silly) File "/usr/lib/Zope-2.3.0a1-src/lib/python/Products/LoginManager/__init__.py", line 1, in ? import LoginManager, LoginMethods, UserSources File "/usr/lib/Zope-2.3.0a1-src/lib/python/Products/LoginManager/LoginManager.py", line 114, in ? from AccessControl.User import _remote_user_mode, Super ImportError: cannot import name Super Thanks, Austin Mayberry
Austin Mayberry wrote:
Has anyone tried get the LoginManager to work with Zope 2.3a1? When I try the LoginManager product is broken with error message:
LoginManager 0.8.6 seems to work fine. 0.8.8b1 tries to use a class in User.py that no longer exists. In fact, it does things that are probably outside the realm of a "user folder" product and might be more appropriate as a different product. I don't know about 0.8.7. I could fix LoginManager easily but the author might fix it a different way. Shane
Since I posted this this morning I have since figured out a way to fix it. The LoginManager was referencing a class in AccessControl/Users.py called Super, but in Zope 2.3 this class is called UnrestrictedUser. This introduced a new error which tracedback to HTTPRequest.py. I know it is probably not a good a idea, but I changed that code to make it work only because it seemed to have a bug in it. I could be totally wrong, but lines 772-774 look as if they need to be further indented as some of the variables that code references are declared in the if block above which is one level deeper. Someone check me on this one to make sure that this is correct. Austin Austin Mayberry wrote:
Has anyone tried get the LoginManager to work with Zope 2.3a1? When I try the LoginManager product is broken with error message:
LoginManager Import Traceback
Traceback (innermost last): File "/usr/lib/Zope-2.3.0a1-src/lib/python/OFS/Application.py", line 405, in import_products product=__import__(pname, global_dict, global_dict, silly) File "/usr/lib/Zope-2.3.0a1-src/lib/python/Products/LoginManager/__init__.py", line 1, in ? import LoginManager, LoginMethods, UserSources File "/usr/lib/Zope-2.3.0a1-src/lib/python/Products/LoginManager/LoginManager.py", line 114, in ? from AccessControl.User import _remote_user_mode, Super ImportError: cannot import name Super
Thanks, Austin Mayberry
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Austin Mayberry -
Shane Hathaway