download_ssh_commands view, deprecated
authorScott Baker <smbaker@gmail.com>
Mon, 26 Jan 2015 01:05:14 +0000 (17:05 -0800)
committerScott Baker <smbaker@gmail.com>
Mon, 26 Jan 2015 01:05:14 +0000 (17:05 -0800)
planetstack/core/dashboard/views/download_ssh_commands.py

index ba20885..96d1393 100644 (file)
@@ -1,6 +1,9 @@
 from view_common import *
 from core.xoslib.objects.sliceplus import SlicePlus
 
 from view_common import *
 from core.xoslib.objects.sliceplus import SlicePlus
 
+# This was intended to serve as a download feature for the tenant view. Found
+# a better way to do it. This is deprecated.
+
 class DownloadSSHCommandsView(View):
     url = r'^sshcommands/(?P<sliceid>\d+)/$'
 
 class DownloadSSHCommandsView(View):
     url = r'^sshcommands/(?P<sliceid>\d+)/$'
 
@@ -11,6 +14,5 @@ class DownloadSSHCommandsView(View):
 
         slice = SlicePlus.objects.get(id=sliceid)
 
 
         slice = SlicePlus.objects.get(id=sliceid)
 
-
         return HttpResponse(slice.getSliceInfo()["sshCommands"], content_type='text/text')
 
         return HttpResponse(slice.getSliceInfo()["sshCommands"], content_type='text/text')