diff --git a/docs/addons.rst b/docs/addons.rst index 58a03fc006..b858e89ebe 100644 --- a/docs/addons.rst +++ b/docs/addons.rst @@ -2,7 +2,7 @@ AddOn development ================= Using AddOn's with the framework it is a great way to develop your application -and make public openSource contributions to the community. +and make public open source contributions to the community. With it you can use a more modular design on your application, you can add functionality, views and models that you can build independently and install or uninstall (using different versions). @@ -48,7 +48,7 @@ A very simple manager would look something like this:: import logging from flask_appbuilder.basemanager import BaseManager - from flask_babelpkg import lazy_gettext as _ + from flask_babel import lazy_gettext as _ from .model import MyModel from .views import FirstModelView1 diff --git a/docs/security.rst b/docs/security.rst index 018d29e202..b1ecd22ca9 100644 --- a/docs/security.rst +++ b/docs/security.rst @@ -738,7 +738,7 @@ First extend the User Model (create a sec_models.py file):: extra = Column(String(256)) -Next define a new User view, just like the default User view but with the extra column (create a sec_view.py) +Next define a new User view, just like the default User view but with the extra column (create a sec_views.py) If you're using: :AUTH_DB: Extend UserDBModelView @@ -750,7 +750,7 @@ If you're using: So using AUTH_DB:: from flask_appbuilder.security.views import UserDBModelView - from flask_babelpkg import lazy_gettext + from flask_babel import lazy_gettext class MyUserDBModelView(UserDBModelView): """ diff --git a/docs/user_registration.rst b/docs/user_registration.rst index a489335e06..bba5347604 100644 --- a/docs/user_registration.rst +++ b/docs/user_registration.rst @@ -22,7 +22,7 @@ first. Enabling and using the default implementation is easy just configure the following global config keys on config.py:: - AUTH_TYPE = 1 # Database Authentication + AUTH_TYPE = AUTH_DB AUTH_USER_REGISTRATION = True AUTH_USER_REGISTRATION_ROLE = 'Public' # Config for Flask-WTF Recaptcha necessary for user registration diff --git a/examples/oauth/app/views.py b/examples/oauth/app/views.py index 6c4b4a0c0c..0b7f79fe43 100644 --- a/examples/oauth/app/views.py +++ b/examples/oauth/app/views.py @@ -30,7 +30,7 @@ def form_post(self, form): """ -Example of an decorator to override the OAuth provider information getter +Example of a decorator to override the OAuth provider information getter @appbuilder.sm.oauth_user_info_getter def get_oauth_user_info(sm, provider, response=None):