| Trees | Indices | Help |
|---|
|
|
Represents a single copr (private repo with builds, mock chroots, etc.).
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
__table_args__ = db.Index('copr_webhook_secret', 'webhook_secr
|
|||
id = db.Column(db.Integer, primary_key= True)
|
|||
name = db.Column(db.String(100), nullable= False)
|
|||
homepage = db.Column(db.Text)
|
|||
contact = db.Column(db.Text)
|
|||
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)
|
|||
auto_createrepo = db.Column(db.Boolean, default= True)
|
|||
user_id = db.Column(db.Integer, db.ForeignKey("user.id"))
|
|||
user = db.relationship("User", backref= db.backref("coprs"))
|
|||
group_id = db.Column(db.Integer, db.ForeignKey("group.id"))
|
|||
group = db.relationship("Group", backref= db.backref("groups"))
|
|||
mock_chroots = association_proxy("copr_chroots", "mock_chroot")
|
|||
forked_from_id = db.Column(db.Integer, db.ForeignKey("copr.id"))
|
|||
forked_from = db.relationship("Copr", remote_side= id, backref
|
|||
webhook_secret = db.Column(db.String(100))
|
|||
build_enable_net = db.Column(db.Boolean, default= True, server
|
|||
unlisted_on_hp = db.Column(db.Boolean, default= False, nullabl
|
|||
latest_indexed_data_update = db.Column(db.Integer)
|
|||
persistent = db.Column(db.Boolean, default= False, nullable= F
|
|||
auto_prune = db.Column(db.Boolean, default= True, nullable= Fa
|
|||
use_bootstrap_container = db.Column(db.Boolean, default= False
|
|||
follow_fedora_branching = db.Column(db.Boolean, default= True,
|
|||
scm_repo_url = db.Column(db.Text)
|
|||
scm_api_type = db.Column(db.Text)
|
|||
scm_api_auth_json = db.Column(db.Text)
|
|||
__mapper_args__ = {"order_by": created_on.desc()}
|
|||
|
|||
Return main copr dir for a Copr
|
|
Return True if copr belongs to a group
|
Return owner (user or group) of this copr
|
Return @group.name for a copr owned by a group and user.name otherwise
|
Return repos of this copr as a list of strings
|
Return list of active mock_chroots of this copr
|
:rtype: list of CoprChroot
|
Return list of active mock_chroots of this copr
|
Return list of active mock_chroots of this copr
|
Return number of builds in this copr
|
|
|
Return list of chroots which has been modified
|
|
|
|
|
|
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.
|
|
|
|
|
|||
__table_args__
|
forked_from
|
build_enable_net
|
unlisted_on_hp
|
persistent
|
auto_prune
|
use_bootstrap_container
|
follow_fedora_branching
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 | http://epydoc.sourceforge.net |