def admin_wizard(request): apps = appmanager.get_apps(request.user) app_names = [app.name for app in sorted(apps, key=lambda app: app.menu_index)] tours_and_tutorials = Settings.get_settings().tours_and_tutorials return render('admin_wizard.mako', request, { 'version': settings.HUE_DESKTOP_VERSION, 'apps': dict([(app.name, app) for app in apps]), 'app_names': app_names, 'tours_and_tutorials': tours_and_tutorials, 'collect_usage': collect_usage(), })
def admin_wizard(request): if is_admin(request.user): apps = appmanager.get_apps(request.user) else: apps = [] app_names = [app.name for app in sorted(apps, key=lambda app: app.menu_index)] return render('admin_wizard.mako', request, { 'version': hue_version(), 'apps': dict([(app.name, app) for app in apps]), 'app_names': app_names, 'is_embeddable': request.GET.get('is_embeddable', False), 'collect_usage': collect_usage(), })
def admin_wizard(request): if is_hue_admin(request.user): apps = appmanager.get_apps(request.user) else: apps = [] app_names = [app.name for app in sorted(apps, key=lambda app: app.menu_index)] return render('admin_wizard.mako', request, { 'version': hue_version(), 'apps': dict([(app.name, app) for app in apps]), 'app_names': app_names, 'is_embeddable': request.GET.get('is_embeddable', False), 'collect_usage': collect_usage(), })
def admin_wizard(request): if request.user.is_superuser: apps = appmanager.get_apps(request.user) else: apps = [] app_names = [app.name for app in sorted(apps, key=lambda app: app.menu_index)] tours_and_tutorials = Settings.get_settings().tours_and_tutorials return render('admin_wizard.mako', request, { 'version': hue_version(), 'apps': dict([(app.name, app) for app in apps]), 'app_names': app_names, 'tours_and_tutorials': tours_and_tutorials, 'collect_usage': collect_usage(), })
def admin_wizard(request): if request.user.is_superuser: apps = appmanager.get_apps(request.user) else: apps = [] app_names = [app.name for app in sorted(apps, key=lambda app: app.menu_index)] tours_and_tutorials = Settings.get_settings().tours_and_tutorials return render('admin_wizard.mako', request, { 'version': hue_version(), 'apps': dict([(app.name, app) for app in apps]), 'app_names': app_names, 'tours_and_tutorials': tours_and_tutorials, 'is_embeddable': request.GET.get('is_embeddable', False), 'collect_usage': collect_usage(), })