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

Module filters

source code

Functions [hide private]
 
remove_anchor(data) source code
 
date_from_secs(secs) source code
 
perm_type_from_num(num) source code
 
state_from_num(num) source code
 
module_state_from_num(num) source code
 
os_name_short(os_name, os_version) source code
 
localized_time(time_in, timezone)
return time shifted into timezone (and printed in ISO format)
source code
 
timestamp_diff(time_in, until=None)
returns string with difference between two timestamps
source code
 
time_ago(time_in, until=None)
returns string saying how long ago the time on input was
source code
 
markdown_filter(data) source code
 
parse_package_name(pkg) source code
 
parse_basename(pkg) source code
 
build_state_decoration(state) source code
 
build_source_description(state) source code
 
fix_url_https_backend(url) source code
 
fix_url_https_frontend(url) source code
 
repo_url(url)
render copr://<user>/prj to be rendered as copr projects pages
source code
 
mailto(url) source code
Variables [hide private]
  __package__ = 'coprs'
Function Details [hide private]

remove_anchor(data)

source code 
Decorators:
  • @app.template_filter("remove_anchor")

date_from_secs(secs)

source code 
Decorators:
  • @app.template_filter("date_from_secs")

perm_type_from_num(num)

source code 
Decorators:
  • @app.template_filter("perm_type_from_num")

state_from_num(num)

source code 
Decorators:
  • @app.template_filter("state_from_num")

module_state_from_num(num)

source code 
Decorators:
  • @app.template_filter("module_state_from_num")

os_name_short(os_name, os_version)

source code 
Decorators:
  • @app.template_filter("os_name_short")

localized_time(time_in, timezone)

source code 

return time shifted into timezone (and printed in ISO format)

Input is in EPOCH (seconds since epoch).

Decorators:
  • @app.template_filter('localized_time')

timestamp_diff(time_in, until=None)

source code 

returns string with difference between two timestamps

Input is in EPOCH (seconds since epoch).

Decorators:
  • @app.template_filter('timestamp_diff')

time_ago(time_in, until=None)

source code 

returns string saying how long ago the time on input was

Input is in EPOCH (seconds since epoch).

Decorators:
  • @app.template_filter('time_ago')

markdown_filter(data)

source code 
Decorators:
  • @app.template_filter("markdown")

parse_package_name(pkg)

source code 
Decorators:
  • @app.template_filter("pkg_name")

parse_basename(pkg)

source code 
Decorators:
  • @app.template_filter("basename")

build_state_decoration(state)

source code 
Decorators:
  • @app.template_filter("build_state_description")

build_source_description(state)

source code 
Decorators:
  • @app.template_filter("build_source_description")

fix_url_https_backend(url)

source code 
Decorators:
  • @app.template_filter("fix_url_https_backend")

fix_url_https_frontend(url)

source code 
Decorators:
  • @app.template_filter("fix_url_https_frontend")

repo_url(url)

source code 

render copr://<user>/prj to be rendered as copr projects pages

Decorators:
  • @app.template_filter("repo_url")

mailto(url)

source code 
Decorators:
  • @app.template_filter("mailto")