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

All Samples(15)  |  Call(8)  |  Derive(0)  |  Import(7)

src/m/e/media-archive-1.0/superdesk/media_archive/meta/meta_data.py   media-archive(Download)
from superdesk.user.meta.user import UserMapped
from ally.internationalization import N_
from sql_alchemy.support.util_meta import UtcNow, relationshipModel
 
# --------------------------------------------------------------------
    Id = Column('id', INTEGER(unsigned=True), primary_key=True)
    Name = Column('name', String(255), nullable=False)
    Type = relationshipModel(MetaTypeMapped.id)
    SizeInBytes = Column('size_in_bytes', Integer)
    CreatedOn = Column('created_on', TIMESTAMP, server_default=UtcNow(), nullable=False)

src/l/i/livedesk-1.0/livedesk/meta/blog.py   livedesk(Download)
from superdesk.source.meta.source import SourceMapped
from internationalization.language.meta.language import LanguageAvailable
from sql_alchemy.support.util_meta import relationshipModel
from ally.api.validate import validate, ReadOnly
 
 
    Id = Column('id', INTEGER(unsigned=True), primary_key=True)
    Type = relationshipModel(BlogTypeMapped.id)
#     Language = Column('fk_language_id', ForeignKey(LanguageAvailable.id), nullable=False)
    Language = relationshipModel(LanguageAvailable.id)

src/l/i/livedesk-1.0/livedesk/meta/blog_type_post.py   livedesk(Download)
from livedesk.meta.blog_type import BlogTypeMapped
#from sql_alchemy.support.mapper import validate
from sql_alchemy.support.util_meta import relationshipModel
from ally.api.validate import validate, ReadOnly
 
    __table_args__ = dict(mysql_engine='InnoDB', mysql_charset='utf8')
 
    BlogType = relationshipModel(BlogTypeMapped.id)
    Name = Column('name', String(190), nullable=False, unique=True)
    Order = Column('ordering', REAL)

src/s/u/superdesk-source-1.0/superdesk/source/meta/source.py   superdesk-source(Download)
from superdesk.meta.metadata_superdesk import Base
from superdesk.source.meta.type import SourceTypeMapped
from sql_alchemy.support.util_meta import relationshipModel
 
# --------------------------------------------------------------------
 
    Id = Column('id', INTEGER(unsigned=True), primary_key=True)
    Type = relationshipModel(SourceTypeMapped.id)
    Name = Column('name', String(255), nullable=False)
    URI = Column('uri', String(255), nullable=False)

src/s/u/superdesk-user-1.0/superdesk/user/meta/user.py   superdesk-user(Download)
from ..api.user import User
from ..meta.user_type import UserTypeMapped
from sql_alchemy.support.util_meta import relationshipModel
from sqlalchemy.schema import Column, ForeignKey
from sqlalchemy.sql.functions import current_timestamp
    CreatedOn = Column('created_on', DateTime, nullable=False, default=current_timestamp())
    Active = Column('active', Boolean, nullable=False, default=True)
    Type = relationshipModel(UserTypeMapped.id)
    # Non REST model attribute --------------------------------------
    userId = Column('fk_person_id', ForeignKey(PersonMapped.Id, ondelete='CASCADE'), primary_key=True)

src/s/u/superdesk-post-1.0/superdesk/post/meta/post.py   superdesk-post(Download)
from superdesk.post.meta.type import PostTypeMapped
from superdesk.user.meta.user import UserMapped
from sql_alchemy.support.util_meta import relationshipModel
from ally.api.validate import validate, ReadOnly
 
 
    Id = Column('id', INTEGER(unsigned=True), primary_key=True)
    Type = relationshipModel(PostTypeMapped.id)
    Creator = Column('fk_creator_id', ForeignKey(UserMapped.Id, ondelete='RESTRICT'), nullable=False)
    Author = Column('fk_author_id', ForeignKey(CollaboratorMapped.Id, ondelete='RESTRICT'))

src/l/i/livedesk-1.0/livedesk/meta/blog_media.py   livedesk(Download)
from sqlalchemy.types import String
from superdesk.meta.metadata_superdesk import Base
from sql_alchemy.support.util_meta import relationshipModel
from ally.api.validate import validate, ReadOnly
 
    Blog = Column('fk_blog_id', ForeignKey(BlogMapped.Id, ondelete='CASCADE'), nullable=False)
    MetaInfo = Column('fk_metainfo_id', ForeignKey(MetaInfoMapped.Id, ondelete='RESTRICT'), nullable=False)
    Type = relationshipModel(BlogMediaTypeMapped.id)
    Rank = Column('rank', INTEGER(unsigned=True), nullable=False)