Praktikum1_Kai
This commit is contained in:
1
Praktikum1_Kai/test/app/__init__.py
Normal file
1
Praktikum1_Kai/test/app/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
# kennzeichnet ein Verzeichnis als Python-Package
|
BIN
Praktikum1_Kai/test/app/__init__.pyc
Normal file
BIN
Praktikum1_Kai/test/app/__init__.pyc
Normal file
Binary file not shown.
BIN
Praktikum1_Kai/test/app/__pycache__/__init__.cpython-35.pyc
Normal file
BIN
Praktikum1_Kai/test/app/__pycache__/__init__.cpython-35.pyc
Normal file
Binary file not shown.
BIN
Praktikum1_Kai/test/app/__pycache__/application.cpython-35.pyc
Normal file
BIN
Praktikum1_Kai/test/app/__pycache__/application.cpython-35.pyc
Normal file
Binary file not shown.
31
Praktikum1_Kai/test/app/application.py
Normal file
31
Praktikum1_Kai/test/app/application.py
Normal 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
|
BIN
Praktikum1_Kai/test/app/application.pyc
Normal file
BIN
Praktikum1_Kai/test/app/application.pyc
Normal file
Binary file not shown.
Reference in New Issue
Block a user