Revision 47276ec2 ui/views.py
b/ui/views.py | ||
---|---|---|
63 | 63 |
SUGGESTED_ROLES_DEFAULT = ["Database server", "File server", "Mail server", "Web server", "Proxy"] |
64 | 64 |
SUGGESTED_ROLES = getattr(settings, "VM_CREATE_SUGGESTED_ROLES", SUGGESTED_ROLES_DEFAULT) |
65 | 65 |
|
66 |
SUPPORT_SSH_OS_LIST = getattr(settings, "UI_SUPPORT_SSH_OS_LIST", |
|
67 |
['debian', 'fedora', 'okeanos', 'ubuntu', 'kubuntu', 'centos']) |
|
68 |
|
|
69 |
OS_CREATED_USERS = getattr(settings, "UI_OS_CREATED_USERS", {'debian':'root', |
|
70 |
'fedora': 'root', 'okeanos': 'root', 'ubuntu': 'root', 'kubuntu': 'root', |
|
71 |
'centos': 'root', 'windows': 'Administrator'}) |
|
72 |
|
|
66 | 73 |
# UI behaviour settings |
67 | 74 |
DELAY_ON_BLUR = getattr(settings, "UI_DELAY_ON_BLUR", True) |
68 | 75 |
BLUR_DELAY = getattr(settings, "UI_BLUR_DELAY", 8000) |
... | ... | |
123 | 130 |
'handle_window_exceptions': json.dumps(HANDLE_WINDOW_EXCEPTIONS), |
124 | 131 |
'skip_timeouts': json.dumps(SKIP_TIMEOUTS), |
125 | 132 |
'vm_name_template': json.dumps(VM_NAME_TEMPLATE) |
133 |
'support_ssh_os_list': json.dumps(SUPPORT_SSH_OS_LIST), |
|
134 |
'os_created_users': json.dumps(OS_CREATED_USERS), |
|
126 | 135 |
} |
127 | 136 |
return template('home', context) |
128 | 137 |
|
Also available in: Unified diff