From 72b7deec127882b947416eacae7782eb0861d722 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Mon, 8 Feb 2010 10:18:36 +0100 Subject: [PATCH] ltl2tgba cgi updates. * wrap/python/cgi-bin/ltl2tgba.in (dot): Use the value computed by configure. (os.system): Cleanup stale files only when the form has been submitted. (list options): Keep track of the selected value. (draw_acc_run|print_acc_run): set ec=0 to detect if it has been later set or not. Fix error message when using generalized automata with degeneralized emptiness checks. * wrap/python/cgi-bin/Makefile.am (ltl2tgba.py): Substitute @DOT@. --- ChangeLog | 14 ++++++++++++++ wrap/python/cgi-bin/Makefile.am | 1 + wrap/python/cgi-bin/ltl2tgba.in | 21 +++++++++++---------- 3 files changed, 26 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5a42e5118..89a1c5ebc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,17 @@ +2010-02-17 Alexandre Duret-Lutz + + ltl2tgba cgi updates. + + * wrap/python/cgi-bin/ltl2tgba.in (dot): Use the value computed by + configure. + (os.system): Cleanup stale files only when the form has been + submitted. + (list options): Keep track of the selected value. + (draw_acc_run|print_acc_run): set ec=0 to detect if it has been + later set or not. Fix error message when using generalized + automata with degeneralized emptiness checks. + * wrap/python/cgi-bin/Makefile.am (ltl2tgba.py): Substitute @DOT@. + 2010-02-02 Alexandre Duret-Lutz * wrap/python/cgi-bin/ltl2tgba.in: Reword description of svg_output. diff --git a/wrap/python/cgi-bin/Makefile.am b/wrap/python/cgi-bin/Makefile.am index 9866ec836..3172a00c2 100644 --- a/wrap/python/cgi-bin/Makefile.am +++ b/wrap/python/cgi-bin/Makefile.am @@ -29,6 +29,7 @@ ltl2tgba.py: $(srcdir)/ltl2tgba.in Makefile -e 's|[@]srcdir[@]|@srcdir@|g' \ -e 's|[@]top_builddir[@]|@top_builddir@|g' \ -e 's|[@]PACKAGE_VERSION[@]|@PACKAGE_VERSION@|g' \ + -e 's|[@]DOT[@]|@DOT@|g' \ <$(srcdir)/ltl2tgba.in >ltl2tgba.tmp chmod +x ltl2tgba.tmp mv -f ltl2tgba.tmp $@ diff --git a/wrap/python/cgi-bin/ltl2tgba.in b/wrap/python/cgi-bin/ltl2tgba.in index 3e3692ac0..384d3df52 100755 --- a/wrap/python/cgi-bin/ltl2tgba.in +++ b/wrap/python/cgi-bin/ltl2tgba.in @@ -86,9 +86,8 @@ extra_header = '' extra_form_notice = '' # Location of the dot command -dot = 'dot' # in PATH. +dot = '@DOT@' dot_bgcolor = '-Gbgcolor=#FFFFFF' -# dot = '/usr/local/bin/dot' ltl2tgba_version = '@PACKAGE_VERSION@' @@ -139,9 +138,6 @@ signal.signal(signal.SIGALRM, alarm_handler) reset_alarm() -# Cleanup stale files from our image directory. -os.system('find ' + imgdir + ' -type f -amin +15 -print | xargs rm -f') - myself = os.environ['SCRIPT_NAME']; form = cgi.FieldStorage() filled = form.has_key('formula') @@ -405,6 +401,7 @@ def add_options(opt_group, opt_column, opt_color, opt_list): if isinstance(desc, list): s += '%s