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

Class Copr

source code


Represents a single copr (private repo with builds, mock chroots, etc.).

Instance Methods [hide private]
 
repos_list(self)
Return repos of this copr as a list of strings
source code
 
active_chroots(self)
Return list of active mock_chroots of this copr
source code
 
build_count(self)
Return number of builds in this copr
source code
 
check_copr_chroot(self, chroot)
Return object of chroot, if is related to our copr or None
source code
 
buildroot_pkgs(self, chroot)
Return packages in minimal buildroot for given chroot.
source code
 
modified_chroots(self)
Return list of chroots which has been modified
source code

Inherited from helpers.Serializer: serializable_attributes, to_dict

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

Class Variables [hide private]
  id = db.Column(db.Integer, primary_key= True)
  name = db.Column(db.String(100), nullable= False)
  repos = db.Column(db.Text)
  created_on = db.Column(db.Integer)
  description = db.Column(db.Text)
  instructions = db.Column(db.Text)
  deleted = db.Column(db.Boolean, default= False)
  playground = db.Column(db.Boolean, default= False)
  owner_id = db.Column(db.Integer, db.ForeignKey("user.id"))
  owner = db.relationship("User", backref= db.backref("coprs"))
  mock_chroots = association_proxy("copr_chroots", "mock_chroot")
  __mapper_args__ = {"order_by": created_on.desc()}
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

repos_list(self)

source code 

Return repos of this copr as a list of strings

Decorators:
  • @property

active_chroots(self)

source code 

Return list of active mock_chroots of this copr

Decorators:
  • @property

build_count(self)

source code 

Return number of builds in this copr

Decorators:
  • @property

modified_chroots(self)

source code 

Return list of chroots which has been modified

Decorators:
  • @property