functionality add

This commit is contained in:
2019-06-24 08:47:03 +02:00
parent 85f1a27e94
commit 76dce1e936
38 changed files with 15245 additions and 1 deletions

18
modules/index.py Normal file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/python3
import cherrypy
import config
import json
static_dir = '/templates/' # Needs to have trailing and leading slash '/'
class wellcome(object):
'''Base Index constructor and expose function'''
@cherrypy.expose
def index(self):
result = '''<a href="./select">SELECT</a>'''
return result
@cherrypy.expose
def other(self):
result = '<h1>Other</h1>'
return result