def __init__(self, component, capabilities, template, *arg, **data): UIResource.__init__(self, component) self.required_capabilities = capabilities self._template = template self.arg = arg self.data = data
def render_tmpl(request, name, *arg, **data): return UIResource.render_tmpl(request, name, MonitorsRegistry=MonitorsRegistry, *arg, **data)