add new app juser,jasset

pull/6/head
root 2014-12-22 17:18:51 +08:00
parent 1e8d930ef0
commit 6a2e6709b9
13 changed files with 26 additions and 0 deletions

View File

@ -143,11 +143,13 @@ def connect(username, password, host, port):
# set PS1 and msg it
channel.send(ps1)
channel.send(login_msg)
print channel.get_name()
# Make ssh interactive tunnel
posix_shell(channel, username, host)
# shutdown channel socket
channel.close()
ssh.close()

0
jasset/__init__.py Normal file
View File

3
jasset/admin.py Normal file
View File

@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

View File

3
jasset/models.py Normal file
View File

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

3
jasset/tests.py Normal file
View File

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

3
jasset/views.py Normal file
View File

@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.

0
juser/__init__.py Normal file
View File

3
juser/admin.py Normal file
View File

@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

View File

3
juser/models.py Normal file
View File

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

3
juser/tests.py Normal file
View File

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

3
juser/views.py Normal file
View File

@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.