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

All Samples(28)  |  Call(0)  |  Derive(14)  |  Import(14)
Mixin for `Role` model definitions

src/f/l/flask-security-example-HEAD/app.py   flask-security-example(Download)
from flask.ext.mail import Mail
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.security import Security, SQLAlchemyUserDatastore, \
     UserMixin, RoleMixin
 
class Role(db.Model, RoleMixin):
    id = db.Column(db.Integer(), primary_key=True)
    name = db.Column(db.String(80), unique=True)
    description = db.Column(db.String(255))
 

src/f/l/flask-social-example-HEAD/app/models.py   flask-social-example(Download)
 
from flask.ext.security import UserMixin, RoleMixin
 
from . import db
 
class Role(db.Model, RoleMixin):
 
    __tablename__ = "roles"
 
    id = db.Column(db.Integer(), primary_key=True)

src/f/l/FlaskPress-HEAD/FlaskPress/models/users.py   FlaskPress(Download)
# -*- coding: utf-8 -*-
from ..tools import generate_password
from ..globals import current_fp
 
from flask.ext.security import Security, SQLAlchemyUserDatastore, UserMixin, RoleMixin
class Role(db.Model, RoleMixin):
  id            = db.Column(db.Integer(), primary_key=True)
  name          = db.Column(db.String(80), unique=True)
  description   = db.Column(db.String(255))
 

src/w/h/wharf-HEAD/wharf/__init__.py   wharf(Download)
from flask.ext.security import SQLAlchemyUserDatastore
from flask.ext.security import UserMixin
from flask.ext.security import RoleMixin
from flask_security.forms import ConfirmRegisterForm
from wtforms import TextField, validators
class Role(db.Model, RoleMixin):
    id = db.Column(db.Integer(), primary_key=True)
    name = db.Column(db.String(80), unique=True)
    description = db.Column(db.String(255))
 

src/a/r/argos-HEAD/argos/web/models/user.py   argos(Download)
 
from flask import current_app
from flask.ext.security import Security, UserMixin, RoleMixin
 
# Table connecting users and roles
class Role(Model, RoleMixin):
    """
    A user's Role
 
    Attributes:

src/q/u/quokka-0.2.0/quokka/modules/accounts/models.py   quokka(Download)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
 
from quokka.core.db import db
from flask.ext.security import UserMixin, RoleMixin
from flask.ext.security.utils import encrypt_password
 
 
# Auth
class Role(db.Document, RoleMixin):

src/f/l/Flask-Marcos-0.0.7dev/flask_marcos/project_template/app/modules/users/models.py   Flask-Marcos(Download)
from flask.ext.security import RoleMixin, UserMixin
from app import db
 
 
roles_users = db.Table('roles_users',
    db.Column('user_id', db.Integer(), db.ForeignKey('user.id')),
    db.Column('role_id', db.Integer(), db.ForeignKey('role.id')))
 
class Role(db.Model, RoleMixin):

src/f/l/flask-starter-HEAD/starter/auth/models.py   flask-starter(Download)
from datetime import datetime
from flask.ext.security import UserMixin, RoleMixin
 
from starter import db
from starter.models import Base
class Role(Base, RoleMixin):
    name = db.Column(db.String)
    description = db.Column(db.String)
 
    def __repr__(self):

src/f/l/flask-social-HEAD/tests/test_app/sqlalchemy.py   flask-social(Download)
sys.path.insert(0, os.getcwd())
 
from flask.ext.security import Security, UserMixin, RoleMixin, \
     SQLAlchemyUserDatastore
from flask.ext.social import Social, SQLAlchemyConnectionDatastore
    class Role(db.Model, RoleMixin):
        id = db.Column(db.Integer(), primary_key=True)
        name = db.Column(db.String(80), unique=True)
        description = db.Column(db.String(255))
 

src/f/l/flask-social-HEAD/tests/test_app/peewee_app.py   flask-social(Download)
 
from flask_peewee.db import Database
from flask.ext.security import Security, UserMixin, RoleMixin, \
    PeeweeUserDatastore
from flask.ext.social import Social, PeeweeConnectionDatastore
    class Role(db.Model, RoleMixin):
        name = TextField(unique=True)
        description = TextField(null=True)
 
    class User(db.Model, UserMixin):

  1 | 2  Next