Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Update core.py #121

Closed
wants to merge 1 commit into from
Closed

Update core.py #121

wants to merge 1 commit into from

Conversation

iwm911
Copy link

@iwm911 iwm911 commented Jun 18, 2013

flask login changed the name of the anonymous user object.
when run without this mod you will get

from flask.ext.security import url_for_security
File "C:\Python27\lib\site-packages\flask\exthook.py", line 81, in load_module
reraise(exc_type, exc_value, tb.tb_next)
File "C:\Python27\lib\site-packages\flask_security__init__.py", line 15, in
from .core import Security, RoleMixin, UserMixin, AnonymousUser, current_user
File "C:\Python27\lib\site-packages\flask_security\core.py", line 13, in
from flask.ext.login import AnonymousUser as AnonymousUserBase,
ImportError: cannot import name AnonymousUser

flask login changed the name of the anonymous user object.
when run without this mod you will get 

    from flask.ext.security import url_for_security
  File "C:\Python27\lib\site-packages\flask\exthook.py", line 81, in load_module
    reraise(exc_type, exc_value, tb.tb_next)
  File "C:\Python27\lib\site-packages\flask_security\__init__.py", line 15, in <module>
    from .core import Security, RoleMixin, UserMixin, AnonymousUser, current_user
  File "C:\Python27\lib\site-packages\flask_security\core.py", line 13, in <module>
    from flask.ext.login import AnonymousUser as AnonymousUserBase, \
ImportError: cannot import name AnonymousUser
@1xch
Copy link

1xch commented Jun 18, 2013

I found this out today as well, see issue

#119

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants