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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/g/a/gateway-acl-1.0/acl/meta/compensate.py   gateway-acl(Download)
from ..api.compensate import Compensate
from .access import AccessMapped
from sql_alchemy.support.util_meta import JSONEncodedDict
from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy.orm import relationship
             Column('fk_access_id', ForeignKey(AccessMapped.Id, ondelete='CASCADE'), nullable=False, primary_key=True))
    Path = declared_attr(lambda cls: Column('path', String(255), nullable=False))
    Mapping = declared_attr(lambda cls: Column('mapping', JSONEncodedDict(255), nullable=False))
    # Non REST model attribute --------------------------------------
    access = declared_attr(lambda cls: relationship(AccessMapped, lazy='joined', uselist=False, viewonly=True))