Did I find the right examples for you? yes no

All Samples(4)  |  Call(0)  |  Derive(3)  |  Import(1)

src/m/d/mdemos.server-1.0.1dev/mdemos/server/model/auth.py   mdemos.server(Download)
from sqlalchemy.orm import relation, synonym
 
from mdemos.server.model import DeclarativeBase, metadata, DBSession
 
__all__ = ['User', 'Group', 'Permission']
class Group(DeclarativeBase):
    """
    Group definition for :mod:`repoze.what`.
 
    Only the ``group_name`` column is required by :mod:`repoze.what`.
class User(DeclarativeBase):
    """
    User definition.
 
    This is the user definition used by :mod:`repoze.who`, which requires at
class Permission(DeclarativeBase):
    """
    Permission definition for :mod:`repoze.what`.
 
    Only the ``permission_name`` column is required by :mod:`repoze.what`.