Trees | Indices | Help |
---|
|
|
|||
CounterStatType | |||
PermissionEnum | |||
BuildSourceEnum | |||
JSONEncodedDict Represents an immutable structure as a json-encoded string. |
|||
Paginator | |||
Serializer | |||
RedisConnectionProvider | |||
StringLiteral Teach SA how to literalize various things. |
|||
LiteralDialect | |||
SubdirMatch |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
REPO_DL_STAT_FMT = "repo_dl_stat::{copr_user}@{copr_project_na
|
|||
CHROOT_REPO_MD_DL_STAT_FMT = "chroot_repo_metadata_dl_stat:hse
|
|||
CHROOT_RPMS_DL_STAT_FMT = "chroot_rpms_dl_stat:hset::{copr_use
|
|||
PROJECT_RPMS_DL_STAT_FMT = "project_rpms_dl_stat:hset::{copr_u
|
|||
FINISHED_STATUSES = ["succeeded", "forked", "canceled", "skipp
|
|||
PY3 = str is not bytes
|
|||
text = str if PY3 else unicode
|
|||
int_type = int if PY3 else(int, long)
|
|||
str_type = str if PY3 else(str, unicode)
|
|
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. |
Get a git branch name from chroot. Follow the fedora naming standard. |
Generates url with build results for .repo file. No checks if copr or mock_chroot exists. |
Examine given copr and generate proper URL for the `view` Values of `username/group_name` and `coprname` are automatically passed as the first two URL parameters, and therefore you should *not* pass them manually. Usage: copr_url("coprs_ns.foo", copr) copr_url("coprs_ns.foo", copr, arg1='bar', arg2='baz) |
NOTE: This is entirely insecure. DO NOT execute the resulting strings. This can be used for debuggin - it is not and should not be used in production code. It is useful if you want to debug an sqlalchemy query, i.e. copy the resulting SQL query into psql console and try to tweak it so that it actually works or works faster. |
:param repo: str repo from Copr/CoprChroot/Build/... :param supported_keys list of supported optional parameters :return: dict of optional parameters parsed from the repo URL |
We cannot really switch to the new copr:{hostname}:{owner}:{project} format yet, because it is implemented in dnf-plugins-core-3.x which is only on F29+ Since the F29+ plugin is able to work with both old and new formats, we can safely stay with the old one until F28 is still supported. Once it goes EOL, we can migrate to the new format. New format is: return "copr:{0}:{1}:{2}".format(app.config["PUBLIC_COPR_HOSTNAME"].split(":")[0], copr_dir.copr.owner_name.replace("@", "group_"), copr_dir.name) |
|
REPO_DL_STAT_FMT
|
CHROOT_REPO_MD_DL_STAT_FMT
|
CHROOT_RPMS_DL_STAT_FMT
|
PROJECT_RPMS_DL_STAT_FMT
|
FINISHED_STATUSES
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 | http://epydoc.sourceforge.net |