summaryrefslogtreecommitdiffstats
path: root/module/web/WebServer.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-17 15:49:48 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-17 15:49:48 +0200
commit9f044df800d8ccca73178a523b18fead36e5befc (patch)
tree3a7704aaf96fb8429edc5e7dcbbab7381c7bca96 /module/web/WebServer.py
parentpyLoad Test Webinterface ! (diff)
downloadpyload-9f044df800d8ccca73178a523b18fead36e5befc.tar.xz
new config options, webinterface test
Diffstat (limited to 'module/web/WebServer.py')
-rw-r--r--module/web/WebServer.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/module/web/WebServer.py b/module/web/WebServer.py
index d2bf9b3a8..ad0d03512 100644
--- a/module/web/WebServer.py
+++ b/module/web/WebServer.py
@@ -39,9 +39,16 @@ core = None
PATH = "./module/web/"
+@route('/', method= 'POST')
+def home():
+ #print request.GET
+ print request.POST
+
+ return template('default', page='home', links=core.get_downloads())
+
@route('/')
-def hello_world():
- return template('default', string=str(core.get_downloads()))
+def login():
+ return template('default', page='login')
@route('/favicon.ico')
def favicon():
@@ -67,4 +74,4 @@ class WebServer(threading.Thread):
bottle.TEMPLATE_PATH.append('./module/web/templates/%s.tpl')
def run(self):
- run(host='localhost', port=8080) \ No newline at end of file
+ run(host='localhost', port=int(self.core.config['webinterface']['port'])) \ No newline at end of file