Files
cherrypy_sqlite_restapi/main/modules/select.py

14 lines
302 B
Python

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')
fh.close()
return result