Your ROOT_URL in app.ini is https://source.parasitstudio.de:63000/ but you are visiting https://source.parasitstudio.de/wirtz/scriptform/commit/aec8cb860eedd30428906bc2a1db37f12322f7fd?style=unified&whitespace=ignore-change
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
6 additions and
4 deletions
src/daemon.py
src/scriptform.py
src/webapp.py
@ -163,7 +163,7 @@ class Daemon(object): # pragma: no cover
def _cleanup ( self , sig = None , frame = None ) :
"""
Remv oe pid files and call registered shutodnw callbacks .
Remov e pid files and call registered shutodnw callbacks .
"""
self . log . info ( " Received signal %s " , sig )
if os . path . exists ( self . pid_file ) :
@ -87,8 +87,9 @@ class ScriptForm(object):
file_contents = file ( self . config_file , ' r ' ) . read ( )
try :
config = json . loads ( file_contents )
except ValueError as e :
sys . stderr . write ( " Error in form configuration ' {} ' : {} \n " . format ( self . config_file , e ) )
except ValueError as err :
sys . stderr . write ( " Error in form configuration ' {} ' : {} \n " . format (
self . config_file , err ) )
sys . exit ( 1 )
static_dir = None
@ -195,7 +195,8 @@ class ScriptFormWebApp(RequestHandler):
if auth_header is not None :
# Validate the username and password
auth_unpw = auth_header . split ( ' ' , 1 ) [ 1 ]
username , password = base64 . decodestring ( auth_unpw ) . split ( " : " , 1 )
username , password = base64 . decodestring ( auth_unpw ) . split ( " : " ,
1 )
pw_hash = hashlib . sha256 ( password ) . hexdigest ( )
if username in form_config . users and \