diff --git a/main/modules/__pycache__/create.cpython-37.pyc b/main/modules/__pycache__/create.cpython-37.pyc new file mode 100644 index 0000000..98875cf Binary files /dev/null and b/main/modules/__pycache__/create.cpython-37.pyc differ diff --git a/main/modules/__pycache__/delete.cpython-37.pyc b/main/modules/__pycache__/delete.cpython-37.pyc new file mode 100644 index 0000000..4380b09 Binary files /dev/null and b/main/modules/__pycache__/delete.cpython-37.pyc differ diff --git a/main/modules/__pycache__/drop.cpython-37.pyc b/main/modules/__pycache__/drop.cpython-37.pyc new file mode 100644 index 0000000..1a913b7 Binary files /dev/null and b/main/modules/__pycache__/drop.cpython-37.pyc differ diff --git a/main/modules/__pycache__/index.cpython-37.pyc b/main/modules/__pycache__/index.cpython-37.pyc new file mode 100644 index 0000000..049e39d Binary files /dev/null and b/main/modules/__pycache__/index.cpython-37.pyc differ diff --git a/main/modules/__pycache__/insert.cpython-37.pyc b/main/modules/__pycache__/insert.cpython-37.pyc new file mode 100644 index 0000000..9645888 Binary files /dev/null and b/main/modules/__pycache__/insert.cpython-37.pyc differ diff --git a/main/modules/__pycache__/select.cpython-37.pyc b/main/modules/__pycache__/select.cpython-37.pyc new file mode 100644 index 0000000..41f769c Binary files /dev/null and b/main/modules/__pycache__/select.cpython-37.pyc differ diff --git a/main/modules/create.py b/main/modules/create.py new file mode 100644 index 0000000..5c79148 --- /dev/null +++ b/main/modules/create.py @@ -0,0 +1,10 @@ +import cherrypy + + +class create(object): + @cherrypy.expose + def index(self): + with open('templates/create.html') as fh: + index_f = fh.read() + result = index_f.format(_title='create_strana', _heading='create') + return result \ No newline at end of file diff --git a/main/modules/delete.py b/main/modules/delete.py new file mode 100644 index 0000000..16f0e52 --- /dev/null +++ b/main/modules/delete.py @@ -0,0 +1,10 @@ +import cherrypy + + +class delete(object): + @cherrypy.expose + def index(self): + with open('templates/delete.html') as fh: + index_f = fh.read() + result = index_f.format(_title='delete_strana', _heading='delete') + return result \ No newline at end of file diff --git a/main/modules/drop.py b/main/modules/drop.py new file mode 100644 index 0000000..0ea9e50 --- /dev/null +++ b/main/modules/drop.py @@ -0,0 +1,10 @@ +import cherrypy + + +class drop(object): + @cherrypy.expose + def index(self): + with open('templates/drop.html') as fh: + index_f = fh.read() + result = index_f.format(_title='drop_strana', _heading='drop') + return result \ No newline at end of file diff --git a/main/modules/index.py b/main/modules/index.py new file mode 100644 index 0000000..5f86243 --- /dev/null +++ b/main/modules/index.py @@ -0,0 +1,10 @@ +import cherrypy + + +class wellcome(object): + @cherrypy.expose + def index(self): + with open('templates/index.html') as fh: + index_f = fh.read() + result = index_f.format(_title='Titulni_strana', _heading='Vítejte!') + return result \ No newline at end of file diff --git a/main/modules/insert.py b/main/modules/insert.py new file mode 100644 index 0000000..d8cf708 --- /dev/null +++ b/main/modules/insert.py @@ -0,0 +1,10 @@ +import cherrypy + + +class insert(object): + @cherrypy.expose + def index(self): + with open('templates/insert.html') as fh: + index_f = fh.read() + result = index_f.format(_title='insert_strana', _heading='insert') + return result \ No newline at end of file diff --git a/main/modules/select.py b/main/modules/select.py new file mode 100644 index 0000000..be0e519 --- /dev/null +++ b/main/modules/select.py @@ -0,0 +1,10 @@ +import cherrypy + + +class select(object): + @cherrypy.expose + def index(self): + with open('templates/select.html') as fh: + index_f = fh.read() + result = index_f.format(_title='select_strana', _heading='select') + return result \ No newline at end of file diff --git a/main/templates/create.html b/main/templates/create.html new file mode 100644 index 0000000..0f87e10 --- /dev/null +++ b/main/templates/create.html @@ -0,0 +1,8 @@ + +
+