Package coprs :: Module helpers
[hide private]
[frames] | no frames]

Module helpers

source code

Classes [hide private]
  EnumType
  PermissionEnum
  ActionTypeEnum
  BackendResultEnum
  RoleEnum
  StatusEnum
  Paginator
  Serializer
Functions [hide private]
 
generate_api_token(size=30)
Generate a random string used as token to access the API remotely.
source code
 
parse_package_name(pkg)
Parse package name from possibly incomplete nvra string.
source code
 
render_repo(copr, mock_chroot, url)
Render .repo file.
source code
Variables [hide private]
  __package__ = 'coprs'
Function Details [hide private]

generate_api_token(size=30)

source code 
Generate a random string used as token to access the API
remotely.

:kwarg: size, the size of the token to generate, defaults to 30
    chars.
:return: a string, the API token for the user.

render_repo(copr, mock_chroot, url)

source code 

Render .repo file. No checks if copr or mock_chroot exists.