Aufgabenstellung

This commit is contained in:
darthsandmann
2016-10-11 18:46:02 +02:00
commit 3035389d1f
8 changed files with 80 additions and 0 deletions

View File

@ -0,0 +1 @@
# kennzeichnet ein Verzeichnis als Python-Package

Binary file not shown.

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

Binary file not shown.