%! import sys from splunk.clilib.bundle_paths import make_splunkhome_path sys.path.append(make_splunkhome_path(['etc', 'apps', 'SA-ITOA', 'lib', 'itsi'])) sys.path = list(set(sys.path)) from itsi_feature_compare import FeatureComparison feature_compare = FeatureComparison() if cherrypy.config['product_type'] == 'hunk': faviconFile = 'favicon_hunk.ico' elif cherrypy.config['product_type'] == 'enterprise': faviconFile = 'favicon.ico' else: faviconFile = 'favicon.ico' %>\ <% should_redirect_to_license_upgrade = feature_compare.should_render_license_upgrade_page(cherrypy.session.get('sessionKey'), cherrypy.request.path_info) requested_feature_page = cherrypy.request.path_info.split('/')[-1] %>
% if should_redirect_to_license_upgrade and not '/itsi/license_upgrade' in cherrypy.request.path_info: % endif