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

All Samples(4)  |  Call(0)  |  Derive(0)  |  Import(4)
dict() -> new empty dictionary
dict(mapping) -> new dictionary initialized from a mapping object's
    (key, value) pairs
dict(iterable) -> new dictionary initialized as if via:
    d = {}
    for k, v in iterable:
        d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
    in the keyword argument list.  For example:  dict(one=1, two=2)

src/a/u/Aurora-0.0.4/aurora_app/users/models.py   Aurora(Download)
from werkzeug.security import generate_password_hash, check_password_hash
 
from ..extensions import db
 
from .constants import ROLES, PERMISSIONS
    password_hash = db.Column(db.String(160), nullable=False)
    email = db.Column(db.String(120), unique=True, nullable=False)
    role = db.Column(db.SmallInteger, default=ROLES['USER'])
    # Relations
    deployments = db.relationship("Deployment", backref="user")

src/a/u/aurora-HEAD/aurora_app/users/models.py   aurora(Download)
from werkzeug.security import generate_password_hash, check_password_hash
 
from ..extensions import db
 
from .constants import ROLES, PERMISSIONS
    password_hash = db.Column(db.String(160), nullable=False)
    email = db.Column(db.String(120), unique=True, nullable=False)
    role = db.Column(db.SmallInteger, default=ROLES['USER'])
    # Relations
    deployments = db.relationship("Deployment", backref="user")

src/a/u/Aurora-0.0.4/aurora_app/users/forms.py   Aurora(Download)
from flask.ext.wtf import (Form, Email, Required, TextField, PasswordField,
                           SelectField)
 
from .constants import ROLES
 

src/a/u/aurora-HEAD/aurora_app/users/forms.py   aurora(Download)
from flask.ext.wtf import (Form, Email, Required, TextField, PasswordField,
                           SelectField)
 
from .constants import ROLES