[% USE Api2; USE Api1; USE Dumper; SET CPANEL.CPVAR.dprefix = "../"; SET PageScripts = [ "${CPANEL.ENV.cp_security_token}/3rdparty/cloudlinux/cl-message-handler.js", "${CPANEL.ENV.cp_security_token}/3rdparty/cloudlinux/alt-selector.js", "${CPANEL.ENV.cp_security_token}/3rdparty/cloudlinux/alt-python-selector.js" ]; # For testing #SET PageScripts = [ theme_magic_url('lveversion/js/cl-message-handler.js'), theme_magic_url('lveversion/js/alt-selector.js'), theme_magic_url('lveversion/js/alt-python-selector.js') ]; SET Interpreters = Api2.exec('LVEInfo', 'getPythonInterpreters', {}); SET HomeDir = Api1.exec('LVEInfo', 'get_homedir', [undef]); SET Selector = Api2.exec('LVEInfo', 'pythonSelector', {}); SET list_domains = Api1.exec("Email", "listmaildomainsopt", [undef]); %] [% css_code = PROCESS css_block %] [% js_code = PROCESS js_block %] [% WRAPPER '_assets/master.html.tt' app_key = 'lvepythonsel' # file attribute from dynamicuiconf page_title = "Setup Python App" # title of your window include_legacy_stylesheets = 1 include_legacy_scripts = 1 page_js = js_code page_styles = css_code -%] [% IF CPANEL.CPCONF.item('lve_enablepythonapp') %]
[% INCLUDE 'python-selector-check.tmpl' %]| Python version | |
| App Directory [% HomeDir %]/ | |
| App Domain/URI | |