* wrap/python/cgi/ltl2tgba.in: Use the uuid Python module instead
of the UNIQUE_ID environment variable to avoid being Apache-specific.
This commit is contained in:
parent
3a974d61f0
commit
d9b8fcddd6
2 changed files with 9 additions and 2 deletions
|
|
@ -1,3 +1,9 @@
|
||||||
|
2010-01-25 Damien Lefortier <dam@lrde.epita.fr>
|
||||||
|
|
||||||
|
* wrap/python/cgi/ltl2tgba.in: Use the uuid Python module instead
|
||||||
|
of the UNIQUE_ID environment variable to avoid being
|
||||||
|
Apache-specific.
|
||||||
|
|
||||||
2010-01-24 Guillaume Sadegh <sadegh@lrde.epita.fr>
|
2010-01-24 Guillaume Sadegh <sadegh@lrde.epita.fr>
|
||||||
|
|
||||||
Fix copyrights.
|
Fix copyrights.
|
||||||
|
|
@ -107,6 +113,7 @@
|
||||||
* README: Fit on 80 columns.
|
* README: Fit on 80 columns.
|
||||||
|
|
||||||
2010-01-24 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
2010-01-24 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
||||||
|
|
||||||
* README: Typo.
|
* README: Typo.
|
||||||
|
|
||||||
2010-01-24 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
2010-01-24 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ import os
|
||||||
import cgi
|
import cgi
|
||||||
import cgitb; cgitb.enable()
|
import cgitb; cgitb.enable()
|
||||||
import signal
|
import signal
|
||||||
|
import uuid
|
||||||
|
|
||||||
print "Content-Type: text/html"
|
print "Content-Type: text/html"
|
||||||
print
|
print
|
||||||
|
|
@ -107,8 +108,7 @@ os.system('find ' + imgdir + ' -type f -amin +15 -print | xargs rm -f')
|
||||||
myself = os.environ['SCRIPT_NAME'];
|
myself = os.environ['SCRIPT_NAME'];
|
||||||
form = cgi.FieldStorage()
|
form = cgi.FieldStorage()
|
||||||
filled = form.has_key('formula')
|
filled = form.has_key('formula')
|
||||||
# FIXME: This assumes Apache.
|
uid = str(uuid.uuid1())
|
||||||
uid = os.environ['UNIQUE_ID'];
|
|
||||||
imgprefix = imgdir + '/' + uid
|
imgprefix = imgdir + '/' + uid
|
||||||
|
|
||||||
def escaped_print_set(dict, what):
|
def escaped_print_set(dict, what):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue