[Zope] LoginManager and Zope 2.3

Austin Mayberry austin@tool.net
Mon, 08 Jan 2001 15:01:50 -0500


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 )