Python support

fixes #34
This commit is contained in:
Szekeres Bálint
2018-12-02 21:36:18 +01:00
parent 382aaf32a4
commit d4f3111c12
6 changed files with 104 additions and 2 deletions

View File

@@ -54,6 +54,10 @@
drupal: false,
magento: false,
python: false,
python_server: '/tmp/uwsgi.sock',
python_server_backup: '',
file_structure: 'modularized',
symlink: true,
@@ -547,6 +551,14 @@
return $scope.isPHP() && $scope.data.magento;
};
$scope.isPython = function() {
return $scope.data.python;
};
$scope.isPythonBackup = function() {
return $scope.isPython() && !!$scope.data.python_server_backup;
};
$scope.isCSP = function() {
return !!$scope.data.content_security_policy;
};
@@ -600,6 +612,14 @@
$scope.refreshHighlighting();
$scope.updateHash();
// toggle PHP <-> Python
if ($scope.data.php && !oldValue.php) {
$scope.data.python = false;
} else if ($scope.data.python && !oldValue.python) {
$scope.data.php = false;
}
// default index file
if (!$scope.data.php) {
$scope.defaultData.index = 'index.html';
} else {