Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
A MongoEngine datastore implementation for Flask-Social.

src/f/l/flask-social-HEAD/tests/test_app/mongoengine.py   flask-social(Download)
from flask.ext.security import Security, UserMixin, RoleMixin, \
     MongoEngineUserDatastore
from flask.ext.social import Social, MongoEngineConnectionDatastore
 
from tests.test_app import create_app as create_base_app, populate_data
 
    app.security = Security(app, MongoEngineUserDatastore(db, User, Role))
    app.social = Social(app, MongoEngineConnectionDatastore(db, Connection))
 
    @app.before_first_request