From 3f311c997013e29d041ebfbd27f798b0d9c3c801 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Sun, 6 Jul 2014 15:04:06 +0300 Subject: [PATCH] wireless settings are hidden unless enabled in settings --- src/handlers.py | 1 + src/remote.py | 2 +- templates/main.html | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/handlers.py b/src/handlers.py index 9ad5c81..404be43 100644 --- a/src/handlers.py +++ b/src/handlers.py @@ -146,6 +146,7 @@ class MainHandler(BaseHandler): @BaseHandler.auth() def get(self): self.render('main.html', + wpa_supplicant=settings.WPA_SUPPLICANT_CONF, hostname=socket.gethostname()) diff --git a/src/remote.py b/src/remote.py index 3c09b8d..e766816 100644 --- a/src/remote.py +++ b/src/remote.py @@ -37,7 +37,7 @@ def _make_request(host, port, username, password, uri, method='GET', data=None, timeout = settings.REMOTE_REQUEST_TIMEOUT request = HTTPRequest(url, method, body=data, auth_username=username, auth_password=password, - request_timeout=timeout) + connect_timeout=timeout, request_timeout=timeout) return request diff --git a/templates/main.html b/templates/main.html index 7030d22..f414881 100644 --- a/templates/main.html +++ b/templates/main.html @@ -77,8 +77,8 @@ -
Wireless Network
- +
Wireless Network
+
-- 2.39.5
Network Name