Changeset 10946

Show
Ignore:
Timestamp:
11/09/11 21:33:00 (3 years ago)
Author:
edent
Message:

add paramiko

Location:
ossiedev/branches/jsnyder/trunk/tools/cornetApps
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/branches/jsnyder/trunk/tools/cornetApps/HtmlPages/views.py

    r10944 r10946  
    9595         
    9696@login_required 
    97 def console_page(request): 
     97def console_page(request, ip): 
     98        client = SSHClient() 
     99        client.connect(ip) 
     100        message = client.exec_command('ls -l') 
    98101        return render_to_response('HtmlPages/console.html', locals(), context_instance=RequestContext(request)) 
    99102 
  • ossiedev/branches/jsnyder/trunk/tools/cornetApps/urls.py

    r10887 r10946  
    3030        url(r'^grid/$', 'HtmlPages.views.grid_view'), 
    3131        url(r'^register/$', 'HtmlPages.views.register_page'), 
    32     url(r'^console/$', 'HtmlPages.views.console_page'), 
     32    url(r'^console/(\d*)/$', 'HtmlPages.views.console_page'), 
    3333    url(r'^properties/$', 'HtmlPages.views.properties_page'), 
    3434    url(r'^tasks/$', 'HtmlPages.views.tasks_page'),