Shotca avatar Shotca committed dc5d4ab

Moved back to flaskext for flaskext.auth, autorename was too enthusiastic...

Comments (0)

Files changed (6)

examples/no_db_persistence.py

 from flask import Flask, request, g, redirect, url_for
 app = Flask(__name__)
 
-from flask.ext.auth import Auth, AuthUser, login_required, logout
+from flaskext.auth import Auth, AuthUser, login_required, logout
 auth = Auth(app, login_url_name='index')
 
 @app.before_request

examples/sqlalchemy_model.py

 from flask import Flask, request, redirect, url_for
 from flask.ext.sqlalchemy import SQLAlchemy
-from flask.ext.auth import Auth, login_required, logout
-from flask.ext.auth.models.sa import get_user_class
+from flaskext.auth import Auth, login_required, logout
+from flaskext.auth.models.sa import get_user_class
 
 app = Flask(__name__)
 app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/test.db'

flaskext/auth/__init__.py

     :license: BSD, see LICENSE for more details.
 """
 
-from flask.ext.auth.auth import Auth, AuthUser, login, logout, \
+from flaskext.auth.auth import Auth, AuthUser, login, logout, \
         get_current_user_data, login_required, encrypt
-from flask.ext.auth.permissions import has_permission, permission_required, \
+from flaskext.auth.permissions import has_permission, permission_required, \
         Role, Permission

flaskext/auth/models/gae.py

 """
 
 from google.appengine.ext import db
-from flask.ext.auth import AuthUser
+from flaskext.auth import AuthUser
 
 class User(db.Model, AuthUser):
     """

flaskext/auth/models/sa.py

 
 import datetime
 from sqlalchemy import Column, Integer, String, DateTime
-from flask.ext.auth import AuthUser, get_current_user_data
+from flaskext.auth import AuthUser, get_current_user_data
 
 def get_user_class(declarative_base):
     """

flaskext/auth/permissions.py

 """
 
 from flask import current_app
-from flask.ext.auth.auth import get_current_user_data, not_logged_in
+from flaskext.auth.auth import get_current_user_data, not_logged_in
 
 def has_permission(role, resource, action):
     """Function to check if a user has the specified permission."""
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.