def html_page(self, request, *args, **kw):
        user = request.user
        # print 20150427, user
        if True:  # user.profile.level >= UserLevels.admin:
            if request.subst_user:
                user = request.subst_user

        def getit():
            if not settings.SITE.build_js_cache_on_startup:
                self.build_js_cache(False)

            # Render teplate
            env = settings.SITE.plugins.jinja.renderer.jinja_env
            tpl = env.get_template('extjs/index.html')
            context = {
                'site': settings.SITE,
                'extjs': settings.SITE.plugins.extjs,
                'ext_renderer': self,
                'py2js': py2js,  # TODO: Should be template filter
                'jsgen': jsgen,  # TODO: Should be in filters
                'language': translation.get_language(),
                'request': request,
                'user': user,  # Current user
            }
            context.update(kw)
            return tpl.render(context)
    
        return jsgen.with_user_profile(user.profile, getit)
Creates a new app object from the specified applet.
dataset/ETHPy150Open lsaffre/lino/lino/modlib/extjs/ext_renderer.py/ExtRenderer.html_page--crossover with--dataset/ETHPy150Open dnanexus/dx-toolkit/src/python/dxpy/app_builder.py/create_app