From b1add204b6cb04647a293d7d103d2cfffde61f80 Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 28 Apr 2015 15:08:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=AD=E6=96=87=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/requirements.txt | 2 +- docs/{jumpserver.sh => zzjumpserver.sh} | 0 jumpserver/views.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename docs/{jumpserver.sh => zzjumpserver.sh} (100%) diff --git a/docs/requirements.txt b/docs/requirements.txt index 654e1747d..76a927ad0 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,8 +1,8 @@ sphinx-me django==1.6 python-ldap +pycrypto==2.6.1 paramiko -pycrypto ecdsa>=0.11 MySQL-python django-uuidfield diff --git a/docs/jumpserver.sh b/docs/zzjumpserver.sh similarity index 100% rename from docs/jumpserver.sh rename to docs/zzjumpserver.sh diff --git a/jumpserver/views.py b/jumpserver/views.py index 0a73f140b..26769d085 100644 --- a/jumpserver/views.py +++ b/jumpserver/views.py @@ -182,7 +182,7 @@ def pages(posts, r): return contact_list, p, contacts, page_range, current_page, show_first, show_end -def is_latest(request): +def is_latest(): node = uuid.getnode() jsn = uuid.UUID(int=node).hex[-12:] with open(os.path.join(BASE_DIR, 'version')) as f: