<%! import sys from splunk.clilib.bundle_paths import make_splunkhome_path sys.path.append(make_splunkhome_path(['etc', 'apps', 'SA-ITOA', 'lib'])) sys.path = list(set(sys.path)) from feature_flagging.license_retriever import LicenseRetriever from feature_flagging.suite_content import SuiteContent if cherrypy.config['product_type'] == 'hunk': faviconFile = 'favicon_hunk.ico' elif cherrypy.config['product_type'] == 'enterprise': faviconFile = 'favicon.ico' else: faviconFile = 'favicon.ico' %>\ <% lic_retriever = LicenseRetriever(cherrypy.session.get('sessionKey')) suite = None try: suite = lic_retriever.get_suite() except: # in case any error occurs with reading suite information, treat it as the standard suite suite = SuiteContent.least_permissible_suite() homepage = 'entity_overview' if suite == SuiteContent.least_permissible_suite(): homepage = 'entity_overview' elif suite == SuiteContent.most_permissible_suite(): homepage = 'homeview' %> ${_('Loading...')} ${next.body() if hasattr(next, 'body') else ''} <% config_qs = dict(autoload=1) if hasattr(cherrypy.request, 'guest_pass') and cherrypy.request.guest_pass: config_qs['guest_pass'] = 1 %>