Changeset 13986 in genesis for tools/gformat.py
- Timestamp:
- Sep 22, 2017, 6:35:31 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r13985 r13986 1492 1492 form = urlparse.parse_qs(environ['QUERY_STRING']) if environ.has_key('QUERY_STRING') else None 1493 1493 if form and form.has_key("action") and "update" in form["action"]: 1494 refresh_rate = 5 1494 1495 output = "[INFO] Updating subverion, please wait...\n" 1495 1496 output += subprocess.Popen([SVN, 'cleanup', "%s/.." % NODE_DIR], stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0] … … 1499 1500 except: 1500 1501 output += traceback.format_exc() 1502 refresh_rate = 120 1501 1503 pass 1502 output += "[INFO] All done, redirecting in 5 seconds"1504 output += "[INFO] All done, redirecting in %s seconds" % refresh_rate 1503 1505 response_headers += [ 1504 ('Refresh', ' 5; url=.'),1506 ('Refresh', '%s; url=.' % refresh_rate), 1505 1507 ] 1506 1508 else:
Note:
See TracChangeset
for help on using the changeset viewer.