Praktikum1_Kai

This commit is contained in:
darthsandmann
2016-10-17 18:04:28 +02:00
parent c9f3117da1
commit a3450f2675
39 changed files with 219 additions and 51 deletions

View File

@ -0,0 +1,31 @@
# coding: utf-8
import cherrypy
#--------------------------------------
class Application_cl(object):
#--------------------------------------
#----------------------------------
def __init__(self):
#--------------------------------------
# constructor
pass
@cherrypy.expose
#--------------------------------------
def greeting(self):
#--------------------------------------
return "Cherrypy-Server, Version %s" % cherrypy.__version__
@cherrypy.expose
#--------------------------------------
def default(self, *arglist, **kwargs):
#--------------------------------------
msg_s = "unbekannte Anforderung: " + \
str(arglist) + \
''+\
str(kwargs)
raise cherrypy.HTTPError(404, msg_s)
# EOF