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

Class BuildChroot

source code


Representation of Build<->MockChroot relation

Instance Methods [hide private]
 
name(self)
Textual representation of name of this chroot
source code
 
state(self)
Return text representation of status of this build chroot
source code
 
finished(self) source code
 
task_id(self) source code
 
dist_git_url(self) source code
 
result_dir_url(self) source code
 
live_log_link(self) source code

Inherited from helpers.Serializer: serializable_attributes, to_dict

Class Variables [hide private]
  __table_args__ = db.Index('build_chroot_status_started_on_idx'...
  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", ond...
  build = db.relationship("Build", backref= db.backref("build_ch...
  git_hash = db.Column(db.String(40))
  status = db.Column(db.Integer, default= StatusEnum("waiting"))
  started_on = db.Column(db.Integer, index= True)
  ended_on = db.Column(db.Integer, index= True)
  result_dir = db.Column(db.Text, default= '', server_default= '...
  build_requires = db.Column(db.Text)
Method Details [hide private]

name(self)

source code 

Textual representation of name of this chroot

Decorators:
  • @property

state(self)

source code 

Return text representation of status of this build chroot

Decorators:
  • @property

finished(self)

source code 
Decorators:
  • @property

task_id(self)

source code 
Decorators:
  • @property

dist_git_url(self)

source code 
Decorators:
  • @property

result_dir_url(self)

source code 
Decorators:
  • @property

live_log_link(self)

source code 
Decorators:
  • @property

Class Variable Details [hide private]

__table_args__

Value:
db.Index('build_chroot_status_started_on_idx', "status", "started_on")\
,

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", ondelete= "CASCADE"), \
primary_key= True)

build

Value:
db.relationship("Build", backref= db.backref("build_chroots", cascade=\
 "all, delete-orphan", passive_deletes= True))

result_dir

Value:
db.Column(db.Text, default= '', server_default= '', nullable= False)