Mercurial > p > roundup > code
comparison roundup/cgi/templating.py @ 7582:978285986b2c
fix: issue2551193 - Fix roundup for removal of cgi and cgitb ...
standard python modules (and FieldStorage/MiniFieldStorage).
Vendor cgi.py and modify imports.
Details:
roundup/anypy/cgi_.py
import that accesses a working cgi.py. All imports dealing with cgi
now use cgi_.
roundup/anypy/vendored/cgi.py
vendored version 2.6 of cgi.py from:
https://pypi.org/project/legacy-cgi/
CHANGES.txt
change note added
COPYING.txt
added license for cgi.py
doc/rest.txt
change example to use cgi_
doc/upgrading.txt
doc removal and how to rework local code using cgi.py.
frontends/roundup.cgi
remove unneeded cgi import
roundup/cgi/actions.py
roundup/cgi/apache.py
roundup/cgi/client.py
roundup/cgi/templating.py
roundup/cgi/TAL/TALGenerator.py
test/db_test_base.py
test/rest_common.py
test/test_cgi.py
remove import cgi and replace with from roundup.anypy.cgi_ import
cgi
test/test_actions.py
test/test_templating.py
modify import to get *FieldStorage
test/test_admin.py
test/test_hyperdbvals.py
test/test_xmlrpc.py
remove unneeded cgi import
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 24 Jul 2023 17:49:58 -0400 |
| parents | 448dad050c9e |
| children | 8fb42f41ef10 ab679558bb28 |
comparison
equal
deleted
inserted
replaced
| 7581:9dd27f40de4c | 7582:978285986b2c |
|---|---|
| 18 """ | 18 """ |
| 19 | 19 |
| 20 __docformat__ = 'restructuredtext' | 20 __docformat__ = 'restructuredtext' |
| 21 | 21 |
| 22 import calendar | 22 import calendar |
| 23 import cgi | |
| 24 import csv | 23 import csv |
| 25 import os.path | 24 import os.path |
| 26 import re | 25 import re |
| 27 import textwrap | 26 import textwrap |
| 28 | 27 |
| 29 from roundup import hyperdb, date, support | 28 from roundup import hyperdb, date, support |
| 30 from roundup.anypy import urllib_ | 29 from roundup.anypy import urllib_ |
| 30 from roundup.anypy.cgi_ import cgi | |
| 31 from roundup.anypy.html import html_escape | 31 from roundup.anypy.html import html_escape |
| 32 from roundup.anypy.strings import is_us, us2s, s2u, u2s, StringIO | 32 from roundup.anypy.strings import is_us, us2s, s2u, u2s, StringIO |
| 33 from roundup.cgi import TranslationService, ZTUtils | 33 from roundup.cgi import TranslationService, ZTUtils |
| 34 from roundup.cgi.timestamp import pack_timestamp | 34 from roundup.cgi.timestamp import pack_timestamp |
| 35 from roundup.exceptions import RoundupException | 35 from roundup.exceptions import RoundupException |
