Package coprs :: Module models :: Class MockChroot
[hide private]
[frames] | no frames]

_BoundDeclarativeMeta MockChroot

source code


Representation of mock chroot

Nested Classes [hide private]

Inherited from flask_sqlalchemy.Model: query_class

Instance Methods [hide private]
 
__init__(self, **kwargs)
A simple constructor that allows initialization from kwargs.
source code

Inherited from unreachable.Model: query

Inherited from helpers.Serializer: to_dict

Class Variables [hide private]
  __table_args__ = (UniqueConstraint(Column('os_release', String...
  id = db.Column(db.Integer, primary_key= True)
  os_release = db.Column(db.String(50), nullable= False)
  os_version = db.Column(db.String(50), nullable= False)
  arch = db.Column(db.String(50), nullable= False)
  is_active = db.Column(db.Boolean, default= True)
  distgit_branch_name = db.Column(db.String(50), db.ForeignKey("...
  distgit_branch = db.relationship("DistGitBranch", backref= db....
  __mapper__ = <Mapper at 0x3fffae79b690; MockChroot>
  __table__ = Table('mock_chroot', MetaData(bind=None), Column('...
  __tablename__ = 'mock_chroot'
  _sa_class_manager = <ClassManager of <class 'coprs.models.Mock...

Inherited from unreachable.Model: metadata

Inherited from unreachable.Model (private): _decl_class_registry

Properties [hide private]
  name
Textual representation of name of this chroot
  name_release
Textual representation of name of this or release
  name_release_human
Textual representation of name of this or release
  os
Textual representation of the operating system name
  serializable_attributes
Method Details [hide private]

__init__(self, **kwargs)
(Constructor)

source code 

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in ``kwargs``.

Only keys that are present as attributes of the instance's class are allowed. These could be, for example, any mapped columns or relationships.

Overrides: unreachable.Model-1.__init__

Class Variable Details [hide private]

__table_args__

Value:
(UniqueConstraint(Column('os_release', String(length=50), table=<mock_\
chroot>, nullable=False), Column('os_version', String(length=50), tabl\
e=<mock_chroot>, nullable=False), Column('arch', String(length=50), ta\
ble=<mock_chroot>, nullable=False)))

distgit_branch_name

Value:
db.Column(db.String(50), db.ForeignKey("dist_git_branch.name"), nullab\
le= False)

distgit_branch

Value:
db.relationship("DistGitBranch", backref= db.backref("chroots"))

__table__

Value:
Table('mock_chroot', MetaData(bind=None), Column('id', Integer(), tabl\
e=<mock_chroot>, primary_key=True, nullable=False), Column('os_release\
', String(length=50), table=<mock_chroot>, nullable=False), Column('os\
_version', String(length=50), table=<mock_chroot>, nullable=False), Co\
lumn('arch', String(length=50), table=<mock_chroot>, nullable=False), \
Column('is_active', Boolean(), table=<mock_chroot>, default=ColumnDefa\
ult(True)), Column('distgit_branch_name', String(length=50), ForeignKe\
y('dist_git_branch.name'), table=<mock_chroot>, nullable=False), schem\
...

_sa_class_manager

Value:
<ClassManager of <class 'coprs.models.MockChroot'> at 3fffae786ab8>

Property Details [hide private]

name

Textual representation of name of this chroot

name_release

Textual representation of name of this or release

name_release_human

Textual representation of name of this or release

os

Textual representation of the operating system name

serializable_attributes