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

Class Copr

source code


Represents private a single copr (personal repo with builds, mock chroots, etc.).

Instance Methods [hide private]
 
forks(self) source code
 
main_dir(self)
Return main copr dir for a Copr
source code
 
scm_api_auth(self) source code
 
is_a_group_project(self)
Return True if copr belongs to a group
source code
 
owner(self)
Return owner (user or group) of this copr
source code
 
owner_name(self)
Return @group.name for a copr owned by a group and user.name otherwise
source code
 
repos_list(self)
Return repos of this copr as a list of strings
source code
 
active_chroots(self)
Return list of active mock_chroots of this copr
source code
 
active_copr_chroots(self)
:rtype: list of CoprChroot
source code
 
active_chroots_sorted(self)
Return list of active mock_chroots of this copr
source code
 
outdated_chroots(self) source code
 
active_chroots_grouped(self)
Return list of active mock_chroots of this copr
source code
 
build_count(self)
Return number of builds in this copr
source code
 
disable_createrepo(self, value) source code
 
devel_mode(self) source code
 
modified_chroots(self)
Return list of chroots which has been modified
source code
 
is_release_arch_modified(self, name_release, arch) source code
 
full_name(self) source code
 
repo_name(self) source code
 
repo_url(self) source code
 
repo_id(self) source code
 
modules_url(self) source code
 
to_dict(self, private=False, show_builds=True, show_chroots=True)
Usage:
source code
 
still_forking(self) source code
 
get_search_related_copr_id(self) source code
 
enable_net(self, value) source code
 
new_webhook_secret(self) source code
 
delete_after_days(self, days) source code
 
delete_after_msg(self) source code
 
admin_mails(self) source code

Inherited from helpers.Serializer: serializable_attributes

Class Variables [hide private]
  __table__ = outerjoin(_CoprPublic.__table__, _CoprPrivate.__ta...
  id = column_property(_CoprPublic.__table__.c.id, _CoprPrivate....
  user = db.relationship("User", backref= db.backref("coprs"))
  group = db.relationship("Group", backref= db.backref("groups"))
  mock_chroots = association_proxy("copr_chroots", "mock_chroot")
  forked_from = db.relationship("Copr", remote_side= _CoprPublic...
Method Details [hide private]

forks(self)

source code 
Decorators:
  • @property

main_dir(self)

source code 

Return main copr dir for a Copr

Decorators:
  • @property

scm_api_auth(self)

source code 
Decorators:
  • @property

is_a_group_project(self)

source code 

Return True if copr belongs to a group

Decorators:
  • @property

owner(self)

source code 

Return owner (user or group) of this copr

Decorators:
  • @property

owner_name(self)

source code 

Return @group.name for a copr owned by a group and user.name otherwise

Decorators:
  • @property

repos_list(self)

source code 

Return repos of this copr as a list of strings

Decorators:
  • @property

active_chroots(self)

source code 

Return list of active mock_chroots of this copr

Decorators:
  • @property

active_copr_chroots(self)

source code 

:rtype: list of CoprChroot

Decorators:
  • @property

active_chroots_sorted(self)

source code 

Return list of active mock_chroots of this copr

Decorators:
  • @property

outdated_chroots(self)

source code 
Decorators:
  • @property

active_chroots_grouped(self)

source code 

Return list of active mock_chroots of this copr

Decorators:
  • @property

build_count(self)

source code 

Return number of builds in this copr

Decorators:
  • @property

disable_createrepo(self, value)

source code 
Decorators:
  • @disable_createrepo.setter

devel_mode(self)

source code 
Decorators:
  • @property

modified_chroots(self)

source code 

Return list of chroots which has been modified

Decorators:
  • @property

full_name(self)

source code 
Decorators:
  • @property

repo_name(self)

source code 
Decorators:
  • @property

repo_url(self)

source code 
Decorators:
  • @property

repo_id(self)

source code 
Decorators:
  • @property

modules_url(self)

source code 
Decorators:
  • @property

to_dict(self, private=False, show_builds=True, show_chroots=True)

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)

still_forking(self)

source code 
Decorators:
  • @property

enable_net(self, value)

source code 
Decorators:
  • @enable_net.setter

delete_after_days(self, days)

source code 
Decorators:
  • @delete_after_days.setter

delete_after_msg(self)

source code 
Decorators:
  • @property

admin_mails(self)

source code 
Decorators:
  • @property

Class Variable Details [hide private]

__table__

Value:
outerjoin(_CoprPublic.__table__, _CoprPrivate.__table__)

id

Value:
column_property(_CoprPublic.__table__.c.id, _CoprPrivate.__table__.c.c\
opr_id)

forked_from

Value:
db.relationship("Copr", remote_side= _CoprPublic.id, foreign_keys= [_C\
oprPublic.forked_from_id], backref= db.backref("all_forks"))