def request(self, username, password):
    auth = SiteAuth()
if not auth.isAuthorizedUser(username, password):
    cherrypy.response.headers['Content-Type'] = 'application/json'
return simplejson.dumps(dict(response='Invalid username and/or password'))
Статические html-файлы в Cherrypy