add comments and pep8, add div element to html files
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -4,6 +4,8 @@ import cherrypy
|
||||
class create(object):
|
||||
@cherrypy.expose
|
||||
def index(self):
|
||||
''' Method for open specific html file
|
||||
and change it'''
|
||||
with open('templates/create.html') as fh:
|
||||
index_f = fh.read()
|
||||
result = index_f.format(_title='create_strana', _heading='create')
|
||||
|
||||
@@ -4,6 +4,8 @@ import cherrypy
|
||||
class delete(object):
|
||||
@cherrypy.expose
|
||||
def index(self):
|
||||
''' Method for open specific html file
|
||||
and change it'''
|
||||
with open('templates/delete.html') as fh:
|
||||
index_f = fh.read()
|
||||
result = index_f.format(_title='delete_strana', _heading='delete')
|
||||
|
||||
@@ -4,6 +4,8 @@ import cherrypy
|
||||
class drop(object):
|
||||
@cherrypy.expose
|
||||
def index(self):
|
||||
''' Method for open specific html file
|
||||
and change it'''
|
||||
with open('templates/drop.html') as fh:
|
||||
index_f = fh.read()
|
||||
result = index_f.format(_title='drop_strana', _heading='drop')
|
||||
|
||||
@@ -4,7 +4,9 @@ import cherrypy
|
||||
class wellcome(object):
|
||||
@cherrypy.expose
|
||||
def index(self):
|
||||
''' Method for open specific html file
|
||||
and change it'''
|
||||
with open('templates/index.html') as fh:
|
||||
index_f = fh.read()
|
||||
result = index_f.format(_title='Titulni_strana', _heading='Vítejte!')
|
||||
return result
|
||||
return result
|
||||
|
||||
@@ -4,6 +4,8 @@ import cherrypy
|
||||
class insert(object):
|
||||
@cherrypy.expose
|
||||
def index(self):
|
||||
''' Method for open specific html file
|
||||
and change it'''
|
||||
with open('templates/insert.html') as fh:
|
||||
index_f = fh.read()
|
||||
result = index_f.format(_title='insert_strana', _heading='insert')
|
||||
|
||||
@@ -4,6 +4,8 @@ import cherrypy
|
||||
class select(object):
|
||||
@cherrypy.expose
|
||||
def index(self):
|
||||
''' Method for open specific html file
|
||||
and change it'''
|
||||
with open('templates/select.html') as fh:
|
||||
index_f = fh.read()
|
||||
result = index_f.format(_title='select_strana', _heading='select')
|
||||
|
||||
Reference in New Issue
Block a user