Trees | Indices | Help |
---|
|
Representation of Copr<->MockChroot M:N relation.
This table basically determines what chroots are enabled in what projects. But it also contains configuration for assigned Copr/MockChroot pairs.
We create/delete instances of this class when user enables/disables the chroots in his project. That said, we don't keep history of changes here which means that there's only one configuration at any time.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
id = db.Column('id', db.Integer, primary_key= True)
|
|||
__table_args__ = db.UniqueConstraint("mock_chroot_id", "copr_i
|
|||
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"), null
|
|||
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)
|
|||
module_toggle = db.Column(db.Text, 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)
|
|||
bootstrap = db.Column(db.Text)
|
|||
bootstrap_image = db.Column(db.Text)
|
|
|
|
|
|
|
|
|
|
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.
|
Get Copr+CoprChroot consolidated bootstrap configuration
|
|
__table_args__
|
repos
|
mock_chroot_id
|
mock_chroot
|
copr_id
|
copr
|
with_opts
|
without_opts
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 | http://epydoc.sourceforge.net |