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)
Returns repos of this copr as a list of strings
source code
 
description_or_not_filled(self) source code
 
instructions_or_not_filled(self) source code
 
active_mock_chroots(self)
Returns list of active mock_chroots of this copr
source code

Inherited from 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)
  build_count = db.Column(db.Integer, default= 0)
  deleted = 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 

Returns repos of this copr as a list of strings

Decorators:
  • @property

description_or_not_filled(self)

source code 
Decorators:
  • @property

instructions_or_not_filled(self)

source code 
Decorators:
  • @property

active_mock_chroots(self)

source code 

Returns list of active mock_chroots of this copr

Decorators:
  • @property