Package telemeta :: Package templatetags :: Module telemeta_utils
[hide private]
[frames] | no frames]

Module telemeta_utils

source code

Classes [hide private]
  TelemetaVersionNode
  TelemetaUrlNode
  DescriptionListFieldNode
  SetVarNode
Functions [hide private]
 
tolist(dict)
Converts a simple dict into a list
source code
 
mul(value, arg)
Multiply a numeric value
source code
 
telemeta_version(parser, token)
Get Telemeta version number
source code
 
telemeta_url(parser, token)
Get Telemeta project homepage URL
source code
 
escapejs(value)
Backslash-escapes characters for use in JavaScript strings.
source code
 
build_query_string(vars)
Build an HTTP query string out of a dict
source code
 
code_or_id(resource) source code
 
is_item(resource) source code
 
is_collection(resource) source code
 
to_dublincore(resource) source code
 
dl_field(parser, token) source code
 
prepend(str, prefix) source code
 
field_label(model, field=None) source code
 
field_value(object, member) source code
 
is_none(value) source code
 
resources_num(value) source code
 
split(value, sep=',') source code
 
variable_link(object, url_name, url_key) source code
 
equals(value1, value2) source code
 
render_flatpage(content) source code
 
organization() source code
 
set_var(parser, token)
{% set <var_name> = <var_value> %}
source code
 
current_year() source code
 
html_line_break(text) source code
Variables [hide private]
  register = template.Library()
  _js_escapes = '\\', '\\\\', ('"', '\\"'), ("'", "\\'"), ('\n',...
Function Details [hide private]

tolist(dict)

source code 

Converts a simple dict into a list

Decorators:
  • @register.filter

mul(value, arg)

source code 

Multiply a numeric value

Decorators:
  • @register.filter

telemeta_version(parser, token)

source code 

Get Telemeta version number

Decorators:
  • @register.tag

telemeta_url(parser, token)

source code 

Get Telemeta project homepage URL

Decorators:
  • @register.tag

escapejs(value)

source code 

Backslash-escapes characters for use in JavaScript strings.

Decorators:
  • @register.filter

build_query_string(vars)

source code 

Build an HTTP query string out of a dict

Decorators:
  • @register.filter

code_or_id(resource)

source code 
Decorators:
  • @register.filter

is_item(resource)

source code 
Decorators:
  • @register.filter

is_collection(resource)

source code 
Decorators:
  • @register.filter

to_dublincore(resource)

source code 
Decorators:
  • @register.filter

dl_field(parser, token)

source code 
Decorators:
  • @register.tag

prepend(str, prefix)

source code 
Decorators:
  • @register.filter

field_label(model, field=None)

source code 
Decorators:
  • @register.simple_tag

field_value(object, member)

source code 
Decorators:
  • @register.simple_tag

is_none(value)

source code 
Decorators:
  • @register.filter

resources_num(value)

source code 
Decorators:
  • @register.filter

split(value, sep=',')

source code 
Decorators:
  • @register.filter

variable_link(object, url_name, url_key)

source code 
Decorators:
  • @register.simple_tag

equals(value1, value2)

source code 
Decorators:
  • @register.filter

render_flatpage(content)

source code 
Decorators:
  • @register.filter

organization()

source code 
Decorators:
  • @register.simple_tag

set_var(parser, token)

source code 

{% set <var_name> = <var_value> %}

Decorators:
  • @register.tag

current_year()

source code 
Decorators:
  • @register.simple_tag

html_line_break(text)

source code 
Decorators:
  • @register.filter

Variables Details [hide private]

_js_escapes

Value:
'\\', '\\\\', ('"', '\\"'), ("'", "\\'"), ('\n', '\\n'), ('\r', '\\r')\
, ('\b', '\\b'), ('\f', '\\f'), ('\t', '\\t'), ('\v', '\\v'), ('</', '\
<\\/'),