Package coprs :: Package logic :: Module coprs_logic :: Class CoprChrootsLogic
[hide private]
[frames] | no frames]

Class CoprChrootsLogic

source code


Class Methods [hide private]
 
get_multiple(cls, include_deleted=False) source code
 
mock_chroots_from_names(cls, names)
Return a list of MockChroot objects (not a query object!) which are named by one of the ``names`` list.
source code
 
get_by_mock_chroot_id(cls, copr, mock_chroot_id)
Query CoprChroot(s) in Copr with MockChroot.id
source code
 
get_by_name(cls, copr, chroot_name, active_only=True) source code
 
get_by_name_safe(cls, copr, chroot_name)
:rtype: models.CoprChroot
source code
 
new(cls, mock_chroot) source code
 
new_from_names(cls, copr, names) source code
 
create_chroot(cls, user, copr, mock_chroot, buildroot_pkgs=None, repos=None, comps=None, comps_name=None, with_opts="", without_opts="", delete_after=None, delete_notify=None, module_toggle="", bootstrap=None, bootstrap_image=None)
:type user: models.User :type mock_chroot: models.MockChroot
source code
 
update_chroot(cls, user, copr_chroot, buildroot_pkgs=None, repos=None, comps=None, comps_name=None, with_opts="", without_opts="", delete_after=None, delete_notify=None, module_toggle="", bootstrap=None, bootstrap_image=None)
:type user: models.User :type copr_chroot: models.CoprChroot
source code
 
_update_chroot(cls, buildroot_pkgs, repos, comps, comps_name, copr_chroot, with_opts, without_opts, delete_after, delete_notify, module_toggle, bootstrap, bootstrap_image) source code
 
update_from_names(cls, user, copr, names)
Update list of CoprChroots assigned to ``copr`` from chroot ``names`` array.
source code
 
remove_comps(cls, user, copr_chroot) source code
 
remove_copr_chroot(cls, user, copr_chroot)
:param models.CoprChroot chroot:
source code
 
filter_outdated(cls, query) source code
 
filter_outdated_to_be_deleted(cls, query) source code
Method Details [hide private]

update_from_names(cls, user, copr, names)
Class Method

source code 

Update list of CoprChroots assigned to ``copr`` from chroot ``names`` array. The chroots not present in ``names`` are disabled.

:param user: The user who does the change. :type user: models.User