Changeset 805 for trunk/UTIL/PYTHON/mcd/proto/cgi-bin/mcdcgi.py
- Timestamp:
- Oct 15, 2012, 12:00:39 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/mcd/proto/cgi-bin/mcdcgi.py
r800 r805 69 69 if sumfree > 2: exit() ## only 1D or 2D plots for the moment 70 70 71 try: query.xdate = float(form.getvalue("ls")) 72 except: query.xdate = float(1) 71 try: query.datekey = int(form.getvalue("datekeyhtml")) 72 except: query.datekey = float(1) 73 if query.datekey == 1: 74 try: query.xdate = float(form.getvalue("ls")) 75 except: query.xdate = float(1) 76 else: 77 try: query.xdate = float(form.getvalue("julian")) 78 except: query.xdate = float(1) 79 query.loct = 0. 80 73 81 try: query.hrkey = int(form.getvalue("hrkey")) 74 82 except: query.hrkey = int(1) … … 156 164 #print "<br />" 157 165 166 print "<a href='../index.html'>Click here to start a new query</a><br />" 167 158 168 ## Now the part which differs 159 169 if sumfree == 0: query.update() ; query.htmlprinttabextvar(vartoplot) #query.printmeanvar() 160 elif sumfree >= 1: print "< a href='../index.html'>Click here to start a new query</a><br /><img src='"+figname+"'><br />"170 elif sumfree >= 1: print "<img src='"+figname+"'><br />" 161 171 else: print "<h1>ERROR : sumfree is not or badly defined ...</h1></body></html>" 162 172
Note: See TracChangeset
for help on using the changeset viewer.