Mercurial > p > roundup > code
view roundup/version_check.py @ 7738:ce0c40b6cdc3
doc: replace URL action example with form
The example to provide a link to take or resolve an item was broken.
Roundup has required a POST not GET for changes to the database for
a while. This example was never fixed.
Replaced a link using GET with a POSTed form. This changes the
activating element from a link to a button. The button could be
restyled as a link using CSS I think.
The original example was also not canonical. It used :action rather
than the canonical @action.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 13 Feb 2024 19:45:44 -0500 |
| parents | 9223ed67af05 |
| children | f72381d300a4 |
line wrap: on
line source
#!/usr/bin/env python # Roundup requires Python 2.7+ as mentioned in doc\installation.txt from __future__ import print_function import sys VERSION_NEEDED = (2, 7) if sys.version_info < VERSION_NEEDED: print("Content-Type: text/plain\n") print("Roundup requires Python %s.%s or newer." % VERSION_NEEDED) sys.exit(0)
