Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Rename flaskext. to flask_principal. in docstrings #72

Merged
merged 1 commit into from
May 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/flask_principal.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

For example::

from flaskext.principal import Identity, identity_changed
from flask_principal import Identity, identity_changed

def login_view(req):
username = req.form.get('username')
Expand All @@ -62,7 +62,7 @@ def login_view(req):

For example::

from flaskext.principal import identity_loaded, RoleNeed, UserNeed
from flask_principal import identity_loaded, RoleNeed, UserNeed

@identity_loaded.connect
def on_identity_loaded(sender, identity):
Expand Down Expand Up @@ -167,7 +167,7 @@ def __init__(self):
class IdentityContext(object):
"""The context of an identity for a permission.

.. note:: The principal is usually created by the flaskext.Permission.require method
.. note:: The principal is usually created by the flask_principal.Permission.require method
call for normal use-cases.

The principal behaves as either a context manager or a decorator. The
Expand Down