Allura/allura/ext/user_profile/user_main.py
def display(self, *a, **kw):
        """
        Renders the section using the context from :meth:`prepare_context`
        and the :attr:`template`, if :meth:`check_display` returns True.

        If overridden or this base class is not used, this method should
        return either plain text (which will be escaped) or a `jinja2.Markup`
        instance.
        """
        if not self.check_display():
            return ''
        try:
            tmpl = g.jinja2_env.get_template(self.template)
            context = self.prepare_context({
                'h': h,
                'c': c,
                'g': g,
                'user': self.user,
                'config': tg.config,
                'auth': AuthenticationProvider.get(request),
            })
            return Markup(tmpl.render(context))
        except Exception as e:
            log.exception('Error rendering profile section %s: %s', type(self).__name__, e)
            if asbool(tg.config.get('debug')):
                raise
            else:
                return ''

        Renders the section using the context from :meth:`prepare_context`
        and the :attr:`template`, if :meth:`check_display` returns True.

        If overridden or this base class is not used, this method should
        return either plain text (which will be escaped) or a `jinja2.Markup`
        instance.
        


If overridden or this base class is not used, this method should
return either plain text (which will be escaped) or a `jinja2.Markup`
instance.
If overridden or this base class is not used this method should return either plain text ( which will be escaped ) or a ` jinja2 . Markup ` instance .
def display(self, *a, **kw):
        if not self.check_display():
            return ''
        try:
            tmpl = g.jinja2_env.get_template(self.template)
            context = self.prepare_context({
                'h': h,
                'c': c,
                'g': g,
                'user': self.user,
                'config': tg.config,
                'auth': AuthenticationProvider.get(request),
            })
            return Markup(tmpl.render(context))
        except Exception as e:
            log.exception('Error rendering profile section %s: %s', type(self).__name__, e)
            if asbool(tg.config.get('debug')):
                raise
            else:
                return ''
def display ( self , * a , ** kw ) : if not self . check_display ( ) : return '' try : tmpl = g . jinja2_env . get_template ( self . template ) context = self . prepare_context ( { 'h' : h , 'c' : c , 'g' : g , 'user' : self . user , 'config' : tg . config , 'auth' : AuthenticationProvider . get ( request ) , } ) return Markup ( tmpl . render ( context ) ) except Exception as e : log . exception ( 'Error rendering profile section %s: %s' , type ( self ) . __name__ , e ) if asbool ( tg . config . get ( 'debug' ) ) : raise else : return ''
Renders the section using the context from :meth:`prepare_context`
and the :attr:`template`, if :meth:`check_display` returns True.
Renders the section using the context from : meth : ` prepare_context ` and the : attr : ` template ` if : meth : ` check_display ` returns True .
"""
        Renders the section using the context from :meth:`prepare_context`
        and the :attr:`template`, if :meth:`check_display` returns True.

        If overridden or this base class is not used, this method should
        return either plain text (which will be escaped) or a `jinja2.Markup`
        instance.
        """
self