mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
make instances view for administrators choosable. grouped-nongrouped nongrouped first version of instances. with settings.conf it can be changed.
This commit is contained in:
parent
dc9a5eb327
commit
6a57903fd6
5 changed files with 229 additions and 117 deletions
|
|
@ -193,6 +193,9 @@ def instances(request):
|
|||
error_messages.append(lib_err)
|
||||
addlogmsg(request.user.username, instance.name, lib_err.message)
|
||||
|
||||
instances_template_file = 'instances.html'
|
||||
view_style = settings.VIEW_INSTANCES_LIST_STYLE
|
||||
|
||||
return render(request, 'instances.html', locals())
|
||||
|
||||
|
||||
|
|
@ -976,6 +979,7 @@ def check_instance(request, vname):
|
|||
data['exists'] = True
|
||||
return HttpResponse(json.dumps(data))
|
||||
|
||||
|
||||
def sshkeys(request, vname):
|
||||
"""
|
||||
:param request:
|
||||
|
|
@ -997,6 +1001,7 @@ def sshkeys(request, vname):
|
|||
response = json.dumps(instance_keys)
|
||||
return HttpResponse(response)
|
||||
|
||||
|
||||
def delete_instance(instance, delete_disk=False):
|
||||
compute = instance.compute
|
||||
instance_name = instance.name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue