web.py: add minor comments

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
This commit is contained in:
Michael Opdenacker 2019-09-23 15:47:41 +02:00
parent 04947524d0
commit 2d526f7709

View file

@ -27,7 +27,7 @@ def print (arg, end='\n'):
global outputBuffer
outputBuffer.write (arg + end)
# enable debugging
# Enable CGI Trackback Manager for debugging (https://docs.python.org/fr/3/library/cgitb.html)
import cgitb
cgitb.enable()
@ -39,7 +39,9 @@ from collections import OrderedDict
ident = ''
status = 200
# Split the URL into its components (project, version, cmd, arg)
m = search ('^/([^/]*)/([^/]*)/([^/]*)(.*)$', os.environ['SCRIPT_URL'])
if m:
project = m.group (1)
version = m.group (2)