Package coprs :: Package logic :: Module complex_logic :: Class ComplexLogic
[hide private]
[frames] | no frames]

Class ComplexLogic

source code


Used for manipulation which affects multiply models

Class Methods [hide private]
 
delete_copr(cls, copr, admin_action=False)
Delete copr and all its builds.
source code
 
delete_expired_projects(cls) source code
 
fork_copr(cls, copr, user, dstname, dstgroup=None) source code
 
get_coprs_permissible_by_user(cls, user) source code
 
get_coprs_pinnable_by_owner(cls, owner) source code
Static Methods [hide private]
 
get_group_copr_safe(group_name, copr_name, **kwargs) source code
 
get_copr_safe(user_name, copr_name, **kwargs)
Get one project.
source code
 
get_copr_by_owner_safe(owner_name, copr_name, **kwargs) source code
 
get_copr_by_repo_safe(repo_url) source code
 
get_copr_dir_safe(ownername, copr_dirname, **kwargs) source code
 
get_copr_by_id_safe(copr_id) source code
 
get_build_safe(build_id) source code
 
get_build_chroot(build_id, chrootname)
Return a `models.BuildChroot` instance based on build ID and name of the chroot.
source code
 
get_package_by_id_safe(package_id) source code
 
get_package_safe(copr_dir, package_name) source code
 
get_group_by_name_safe(group_name) source code
 
get_copr_chroot_safe(copr, chroot_name) source code
 
get_active_groups_by_user(user_name) source code
 
get_queue_sizes() source code
Method Details [hide private]

delete_copr(cls, copr, admin_action=False)
Class Method

source code 

Delete copr and all its builds.

:param copr: :param admin_action: set to True to bypass permission check :raises ActionInProgressException: :raises InsufficientRightsException:

get_copr_safe(user_name, copr_name, **kwargs)
Static Method

source code 

Get one project.

This always return personal project. For group projects see get_group_copr_safe().

get_build_chroot(build_id, chrootname)
Static Method

source code 

Return a `models.BuildChroot` instance based on build ID and name of the chroot. If there is no such chroot, `ObjectNotFound` execption is raised.