Exemplo n.º 1
0
    def _render_tmpl(self, request, name, *args, **kwargs):
        """Render mako template with base arguments
        """
        rurl = (request.args.get("rurl") or ('',))[0] or ''
        proxy_cookie = (request.args.get("proxy_cookie") or ('',))[0] or ''
	if proxy_cookie == "": 
	        proxy_param = ""
	else:
	        proxy_param = "&proxy_cookie=" + proxy_cookie

        return UIResource.render_tmpl(self, request, name, 
                p=self.component.get_property, r=self.res_paths, rurl=rurl,
                proxy_cookie=proxy_cookie, proxy_param=proxy_param,  
                rurl_disp=self._get_url_for_display(rurl), *args, **kwargs)
Exemplo n.º 2
0
    def _render_tmpl(self, request, name, *args, **kwargs):
        """Render mako template with base arguments
        """
        rurl = (request.args.get("rurl") or ('', ))[0] or ''
        proxy_cookie = (request.args.get("proxy_cookie") or ('', ))[0] or ''
        if proxy_cookie == "":
            proxy_param = ""
        else:
            proxy_param = "&proxy_cookie=" + proxy_cookie

        return UIResource.render_tmpl(
            self,
            request,
            name,
            p=self.component.get_property,
            r=self.res_paths,
            rurl=rurl,
            proxy_cookie=proxy_cookie,
            proxy_param=proxy_param,
            rurl_disp=self._get_url_for_display(rurl),
            *args,
            **kwargs)
Exemplo n.º 3
0
 def render_tmpl(self, request, name, *arg, **data):
     """Render mako template with componet config and resource paths"""
     return UIResource.render_tmpl(self, request, name,
             c=self.component.config, r=self.res_paths, *arg, **data)