comparison doc/upgrading.txt @ 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 273c8c2b5042
children 5b41018617f2
comparison
equal deleted inserted replaced
7581:9dd27f40de4c 7582:978285986b2c
123 have their accounts locked until after the recommended delay time has 123 have their accounts locked until after the recommended delay time has
124 passed. See `information on configuring the API rate limits`_ for 124 passed. See `information on configuring the API rate limits`_ for
125 details. 125 details.
126 126
127 .. _`information on configuring the API rate limits`: rest.html#rate-limiting-api-failed-logins 127 .. _`information on configuring the API rate limits`: rest.html#rate-limiting-api-failed-logins
128
129 Removal of cgi.py from Python (info)
130 ------------------------------------
131
132 The ``cgi.py`` module will be `removed starting with Python 3.13
133 <https://peps.python.org/pep-0594/#cgi>`_. Roundup now `vendors a copy
134 <https://pypi.org/project/legacy-cgi/>`_ of ``cgi.py`` and makes it
135 and its storage objects available by importing from::
136
137 from roundup.anypy.cgi_ import cgi
138 from roundup.anypy.cgi_ import FieldStorage, MiniFieldStorage
139
140 It is unlikey that you will care unless you have done some expert
141 level Roundup customization. If you have, use one of the imports above
142 if you plan on running on Python 3.13 (expected in 2024) or newer.
128 143
129 .. index:: Upgrading; 2.2.0 to 2.3.0 144 .. index:: Upgrading; 2.2.0 to 2.3.0
130 145
131 Migrating from 2.2.0 to 2.3.0 146 Migrating from 2.2.0 to 2.3.0
132 ============================= 147 =============================

Roundup Issue Tracker: http://roundup-tracker.org/