25 lines
749 B
Python
25 lines
749 B
Python
|
# coding: utf-8
|
||
|
|
||
|
import cherrypy
|
||
|
|
||
|
#----------------------------------------------------------
|
||
|
class Application_cl(object):
|
||
|
#----------------------------------------------------------
|
||
|
|
||
|
exposed = True # gilt für alle Methoden
|
||
|
|
||
|
#-------------------------------------------------------
|
||
|
def __init__(self):
|
||
|
#-------------------------------------------------------
|
||
|
pass
|
||
|
|
||
|
#-------------------------------------------------------
|
||
|
def default(self, *arguments, **kwargs):
|
||
|
#-------------------------------------------------------
|
||
|
msg_s = "unbekannte Anforderung: " + \
|
||
|
str(arguments) + \
|
||
|
' ' + \
|
||
|
str(kwargs)
|
||
|
raise cherrypy.HTTPError(404, msg_s)
|
||
|
|
||
|
# EOF
|