lib.renderer

Package Contents

Classes

Base(self,info)
class Base(info)
__init__(info)

Creates a new base renderer instance.

Args:
info (pyramid.interfaces.IRendererInfo): Info object.
get_symbol_ref(request, record)

Returns the link to the symbol of the specified public law restriction.

Args:

request (pyramid.request.Request): The current request instance. record (pyramid_oereb.lib.records.plr.PlrRecord or

pyramid_oereb.lib.records.view_service.LegendEntryRecord): The record of the public law restriction to get the symbol reference for.
Returns:
uri: The link to the symbol for the specified public law restriction.
get_response(system)

Returns the response object if available.

Args:
system (dict): The available system properties.
Returns:
pyramid.response.Response or None: The response object.
get_request(system)

Returns the request object if available.

Args:
system (dict): The available system properties.
Returns:
pyramid.request.Request or None: The request object.
date_time(dt)

Formats the date/time according to the specification.

Args:
dt (datetime.dateordatetime.timeordatetime.datetime): The datetime object.
Returns:
str: The formatted date/time.
info()

Returns: pyramid.interfaces.IRendererInfo: The passed renderer info object.

get_localized_text(values)

Returns the requested language of a multilingual text element.

Args:
values (str or dict): The multilingual values encoded as JSON.
Returns:
dict of str: Dictionary containing the localized representation.
get_multilingual_text(values)

Returns the set language of a multilingual text element.

Args:
values (str or dict): The multilingual values encoded as JSON.
Returns:
list of dict: List of dictionaries containing the multilingual representation.