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.).

Nested Classes [hide private]
  query_class
An override for SQLAlchemy query used to do fulltext search.
Instance Methods [hide private]
 
check_copr_chroot(self, chroot)
Return object of chroot, if is related to our copr or None
source code
 
buildroot_pkgs(self, chroot)
Returns packages in minimal buildroot for given chroot.
source code
 
__init__(self, **kwargs)
A simple constructor that allows initialization from kwargs.
source code

Inherited from unreachable.Model: query

Inherited from Serializer: to_dict

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __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)
  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()}
  __mapper__ = <Mapper at 0xf681beec; Copr>
  __table__ = Table('copr', MetaData(bind=None), Column('id', In...
  __tablename__ = 'copr'
  _sa_class_manager = <ClassManager of <class 'coprs.models.Copr...

Inherited from unreachable.Model: metadata

Inherited from unreachable.Model (private): _decl_class_registry

Properties [hide private]
  repos_list
Returns repos of this copr as a list of strings
  description_or_not_filled
  instructions_or_not_filled
  active_chroots
Returns list of active mock_chroots of this copr
  build_count
Return number of builds in this copr

Inherited from Serializer: serializable_attributes

Inherited from object: __class__

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

Class Variable Details [hide private]

__table__

Value:
Table('copr', MetaData(bind=None), Column('id', Integer(), table=<copr\
>, primary_key=True, nullable=False), Column('name', String(length=100\
), table=<copr>, nullable=False), Column('repos', Text(), table=<copr>\
), Column('created_on', Integer(), table=<copr>), Column('description'\
, Text(), table=<copr>), Column('instructions', Text(), table=<copr>),\
 Column('deleted', Boolean(), table=<copr>, default=ColumnDefault(Fals\
e)), Column('owner_id', Integer(), ForeignKey('user.id'), table=<copr>\
), schema=None)

_sa_class_manager

Value:
<ClassManager of <class 'coprs.models.Copr'> at f68222fc>

Property Details [hide private]

repos_list

Returns repos of this copr as a list of strings

Get Method:
unreachable.repos_list(self) - Returns repos of this copr as a list of strings

description_or_not_filled

Get Method:
unreachable.description_or_not_filled(self)

instructions_or_not_filled

Get Method:
unreachable.instructions_or_not_filled(self)

active_chroots

Returns list of active mock_chroots of this copr

Get Method:
unreachable.active_chroots(self) - Returns list of active mock_chroots of this copr

build_count

Return number of builds in this copr

Get Method:
unreachable.build_count(self) - Return number of builds in this copr