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

Class BuildChroot

source code


Representation of Build<->MockChroot relation

Nested Classes [hide private]

Inherited from flask_sqlalchemy.Model: query_class

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

Inherited from unreachable.Model: query

Inherited from helpers.Serializer: to_dict

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  mock_chroot_id = db.Column(db.Integer, db.ForeignKey("mock_chr...
  mock_chroot = db.relationship("MockChroot", backref= db.backre...
  build_id = db.Column(db.Integer, db.ForeignKey("build.id"), pr...
  build = db.relationship("Build", backref= db.backref("build_ch...
  git_hash = db.Column(db.String(40))
  status = db.Column(db.Integer, default= StatusEnum("importing"))
  started_on = db.Column(db.Integer)
  ended_on = db.Column(db.Integer, index= True)
  last_deferred = db.Column(db.Integer)
  __mapper__ = <Mapper at 0x7fee48f12210; BuildChroot>
  __table__ = Table('build_chroot', MetaData(bind=None), Column(...
  __tablename__ = 'build_chroot'
  _sa_class_manager = <ClassManager of <class 'coprs.models.Buil...

Inherited from unreachable.Model: metadata

Inherited from unreachable.Model (private): _decl_class_registry

Properties [hide private]
  name
Textual representation of name of this chroot
  state
Return text representation of status of this build chroot
  task_id
  import_task_id
  dist_git_url
  import_log_url
  result_dir_url
  result_dir

Inherited from helpers.Serializer: serializable_attributes

Inherited from object: __class__

Method Details [hide private]

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__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: object.__init__

Class Variable Details [hide private]

mock_chroot_id

Value:
db.Column(db.Integer, db.ForeignKey("mock_chroot.id"), primary_key= Tr\
ue)

mock_chroot

Value:
db.relationship("MockChroot", backref= db.backref("builds"))

build_id

Value:
db.Column(db.Integer, db.ForeignKey("build.id"), primary_key= True)

build

Value:
db.relationship("Build", backref= db.backref("build_chroots"))

__table__

Value:
Table('build_chroot', MetaData(bind=None), Column('mock_chroot_id', In\
teger(), ForeignKey('mock_chroot.id'), table=<build_chroot>, primary_k\
ey=True, nullable=False), Column('build_id', Integer(), ForeignKey('bu\
ild.id'), table=<build_chroot>, primary_key=True, nullable=False), Col\
umn('git_hash', String(length=40), table=<build_chroot>), Column('stat\
us', Integer(), table=<build_chroot>, default=ColumnDefault(7)), Colum\
n('started_on', Integer(), table=<build_chroot>), Column('ended_on', I\
nteger(), table=<build_chroot>), Column('last_deferred', Integer(), ta\
...

_sa_class_manager

Value:
<ClassManager of <class 'coprs.models.BuildChroot'> at 7fee48f143c8>

Property Details [hide private]

name

Textual representation of name of this chroot

Get Method:
unreachable.name(self) - Textual representation of name of this chroot

state

Return text representation of status of this build chroot

Get Method:
unreachable.state(self) - Return text representation of status of this build chroot

task_id

Get Method:
unreachable.task_id(self)

import_task_id

Get Method:
unreachable.import_task_id(self)

dist_git_url

Get Method:
unreachable.dist_git_url(self)

import_log_url

Get Method:
unreachable.import_log_url(self)

result_dir_url

Get Method:
unreachable.result_dir_url(self)

result_dir

Get Method:
unreachable.result_dir(self)