Mercurial > p > roundup > code
comparison doc/rest.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 | 5a8a41a2e3c8 |
comparison
equal
deleted
inserted
replaced
| 7581:9dd27f40de4c | 7582:978285986b2c |
|---|---|
| 1789 can't see the roles. Building on the `Adding new rest endpoints`_ | 1789 can't see the roles. Building on the `Adding new rest endpoints`_ |
| 1790 section this code adds a new endpoint `/data/@permission/Developer` | 1790 section this code adds a new endpoint `/data/@permission/Developer` |
| 1791 that returns a list of users with the developer role:: | 1791 that returns a list of users with the developer role:: |
| 1792 | 1792 |
| 1793 from roundup.rest import Routing, RestfulInstance | 1793 from roundup.rest import Routing, RestfulInstance |
| 1794 from cgi import MiniFieldStorage | 1794 from roundup.anypy.cgi_ import MiniFieldStorage |
| 1795 | 1795 |
| 1796 class RestfulInstance(object): | 1796 class RestfulInstance(object): |
| 1797 | 1797 |
| 1798 @Routing.route("/data/@permission/Developer") | 1798 @Routing.route("/data/@permission/Developer") |
| 1799 def get_role_Developer(self, input): | 1799 def get_role_Developer(self, input): |
