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

Class CoprChroot

source code


Representation of Copr<->MockChroot relation

Instance Methods [hide private]
 
update_comps(self, comps_xml) source code
 
buildroot_pkgs_list(self) source code
 
repos_list(self) source code
 
comps(self) source code
 
comps_len(self) source code
 
name(self) source code
 
is_active(self) source code
 
delete_after_days(self) source code
 
to_dict(self)
Usage:
source code

Inherited from helpers.Serializer: serializable_attributes

Class Variables [hide private]
  buildroot_pkgs = db.Column(db.Text)
  repos = db.Column(db.Text, default= "", server_default= "", nu...
  mock_chroot_id = db.Column(db.Integer, db.ForeignKey("mock_chr...
  mock_chroot = db.relationship("MockChroot", backref= db.backre...
  copr_id = db.Column(db.Integer, db.ForeignKey("copr.id"), prim...
  copr = db.relationship("Copr", backref= db.backref("copr_chroo...
  comps_zlib = db.Column(db.LargeBinary(), nullable= True)
  comps_name = db.Column(db.String(127), nullable= True)
  with_opts = db.Column(db.Text, default= "", server_default= ""...
  without_opts = db.Column(db.Text, default= "", server_default=...
  delete_after = db.Column(db.DateTime, index= True)
  delete_notify = db.Column(db.DateTime, index= True)
Method Details [hide private]

buildroot_pkgs_list(self)

source code 
Decorators:
  • @property

repos_list(self)

source code 
Decorators:
  • @property

comps(self)

source code 
Decorators:
  • @property

comps_len(self)

source code 
Decorators:
  • @property

name(self)

source code 
Decorators:
  • @property

is_active(self)

source code 
Decorators:
  • @property

delete_after_days(self)

source code 
Decorators:
  • @property

to_dict(self)

source code 

Usage:

SQLAlchObject.to_dict() => returns a flat dict of the object
SQLAlchObject.to_dict({"foo": {}}) => returns a dict of the object
    and will include a flat dict of object foo inside of that
SQLAlchObject.to_dict({"foo": {"bar": {}}, "spam": {}}) => returns
    a dict of the object, which will include dict of foo
    (which will include dict of bar) and dict of spam.

Options can also contain two special values: __columns_only__
and __columns_except__

If present, the first makes only specified fields appear,
the second removes specified fields. Both of these fields
must be either strings (only works for one field) or lists
(for one and more fields).

SQLAlchObject.to_dict({"foo": {"__columns_except__": ["id"]},
    "__columns_only__": "name"}) =>

The SQLAlchObject will only put its "name" into the resulting dict,
while "foo" all of its fields except "id".

Options can also specify whether to include foo_id when displaying
related foo object (__included_ids__, defaults to True).
This doesn"t apply when __columns_only__ is specified.

Overrides: helpers.Serializer.to_dict
(inherited documentation)

Class Variable Details [hide private]

repos

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

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("copr_chroots"))

copr_id

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

copr

Value:
db.relationship("Copr", backref= db.backref("copr_chroots", single_par\
ent= True, cascade= "all,delete,delete-orphan"))

with_opts

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

without_opts

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