http://hg.code.sf.net:8000/p/roundup/code/atom-log/tip/test/test_hyperdbvals.py Mercurial Repository: p/roundup/code: test/test_hyperdbvals.py history 2023-11-20T19:16:59-05:00 test: check to see if crypt is available before testing http://hg.code.sf.net:8000/p/roundup/code/#changeset-69e6bcb39f90e88416f9239f1349d5908d3c07e8 John Rouillard rouilj@ieee.org 2023-11-20T19:16:59-05:00 2023-11-20T19:16:59-05:00
changeset 69e6bcb39f90
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description test: check to see if crypt is available before testing

if import crypt fails, silently skip test requiring crypt.
files
issue2551296 - from mock import Mock? http://hg.code.sf.net:8000/p/roundup/code/#changeset-a28ea83ace8611cd4554466e83a80ec632255f46 John Rouillard rouilj@ieee.org 2023-10-24T09:23:16-04:00 2023-10-24T09:23:16-04:00
changeset a28ea83ace86
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description issue2551296 - from mock import Mock?

Fix mock import for newer python3 to use unittest.mock rather than
mock.
files
fix: issue2551193 - Fix roundup for removal of cgi and cgitb ... http://hg.code.sf.net:8000/p/roundup/code/#changeset-978285986b2c9d73f4a39d745ab6a3bbab58af3d John Rouillard rouilj@ieee.org 2023-07-24T17:49:58-04:00 2023-07-24T17:49:58-04:00
changeset 978285986b2c
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description 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
files
Add config argument for one more call http://hg.code.sf.net:8000/p/roundup/code/#changeset-76a21cf791b98e71b9b477c99a8b10594dbe56a7 John Rouillard rouilj@ieee.org 2023-03-04T11:51:45-05:00 2023-03-04T11:51:45-05:00
changeset 76a21cf791b9
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Add config argument for one more call

Also added Mock so it gets tested.
files
assert_ is depricated. Replacing with assertTrue to reduce logs in travisci. http://hg.code.sf.net:8000/p/roundup/code/#changeset-f8893e1cde0d05513a328bd4698dac10d94805b3 John Rouillard rouilj@ieee.org 2019-03-15T20:29:00-04:00 2019-03-15T20:29:00-04:00
changeset f8893e1cde0d
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description assert_ is depricated. Replacing with assertTrue to reduce logs in travisci.
files
Avoid errors from selecting "no selection" on multilink (issue2550722). http://hg.code.sf.net:8000/p/roundup/code/#changeset-fea11d05110e8f3219eaa5106d08a9766f369c37 Joseph Myers jsm@polyomino.org.uk 2018-09-27T11:33:01+00:00 2018-09-27T11:33:01+00:00
changeset fea11d05110e
branch
bookmark
tag
user Joseph Myers <jsm@polyomino.org.uk>
description Avoid errors from selecting "no selection" on multilink (issue2550722).

As discussed in issue 2550722 there are various cases where selecting
"no selection" on a multilink can result in inappropriate errors from
Roundup:

* If selecting "no selection" produces a null edit (a value was set in
the multilink in an edit with an error, then removed again, along
with all other changes, in the next form submission), so the page is
rendered from the form contents including the "-<id>" value for "no
selection" for the multilink.

* If creating an item with a nonempty value for a multilink has an
error, and the resubmission changes that multilink to "no selection"
(and this in turn has subcases, according to whether the creation
then succeeds or fails on the resubmission, which need fixes in
different places in the Roundup code).

All of these cases have in common that it is expected and OK to have a
"-<id>" value for a submission for a multilink when <id> is not set in
that multilink in the database (because the original attempt to set
<id> in that multilink had an error), so the hyperdb.py logic to give
an error in that case is thus removed. In the subcase of the second
case where the resubmission with "no selection" has an error, the
templating code tries to produce a menu entry for the "-<id>"
multilink value, which also results in an error, hence the
templating.py change to ignore such values in the list for a
multilink.
files
fix encoding for hash functions http://hg.code.sf.net:8000/p/roundup/code/#changeset-fbbcbfc6dad0adfa0684cdb7ae5af8a9c025434b Christof Meerwald cmeerw@cmeerw.org 2018-07-23T21:40:31+01:00 2018-07-23T21:40:31+01:00
changeset fbbcbfc6dad0
branch
bookmark
tag
user Christof Meerwald <cmeerw@cmeerw.org>
description fix encoding for hash functions
files
use exception.args instead of exception.message http://hg.code.sf.net:8000/p/roundup/code/#changeset-2b4f606d8e72857dc2932706eb7320debcd59626 Christof Meerwald cmeerw@cmeerw.org 2018-07-23T21:39:46+01:00 2018-07-23T21:39:46+01:00
changeset 2b4f606d8e72
branch
bookmark
tag
user Christof Meerwald <cmeerw@cmeerw.org>
description use exception.args instead of exception.message
files
fix multilink support of try_id_parsing=no and add test for multilink cases. http://hg.code.sf.net:8000/p/roundup/code/#changeset-7b74a5addfeaec161164afe902cfad168b8470c1 John Rouillard rouilj@ieee.org 2016-09-02T23:45:57-04:00 2016-09-02T23:45:57-04:00
changeset 7b74a5addfea
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix multilink support of try_id_parsing=no and add test for multilink cases.
files
Add support for an integer type to join the existing number type. http://hg.code.sf.net:8000/p/roundup/code/#changeset-e424987d294ab827d33f4e5253522b2e86563162 John Rouillard rouilj@ieee.org 2016-06-05T00:17:26-04:00 2016-06-05T00:17:26-04:00
changeset e424987d294a
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Add support for an integer type to join the existing number type.

Commit patch supplied for issue2550886. This can be used for
properties used for ordering, counts etc. where a decimal point
isn't needed. Developed by Anthony (antmail). Doc updates written by
John Rouillard.
files
Remove unneeded TestSuite code from tests http://hg.code.sf.net:8000/p/roundup/code/#changeset-364c549918613cff81c3ebe07aee4025e0ef3fcc John Kristensen john@jerrykan.com 2015-08-21T13:08:02+10:00 2015-08-21T13:08:02+10:00
changeset 364c54991861
branch
bookmark
tag
user John Kristensen <john@jerrykan.com>
description Remove unneeded TestSuite code from tests

The TestSuite code is no longer needed now that we are using py.test
which can automatically discover tests
files
Remove roundup/anypy/hashlib_.py http://hg.code.sf.net:8000/p/roundup/code/#changeset-9ba03348f923f876b8a032c44424692aa5011dd1 John Kristensen john@jerrykan.com 2014-05-09T17:32:44+10:00 2014-05-09T17:32:44+10:00
changeset 9ba03348f923
branch
bookmark
tag
user John Kristensen <john@jerrykan.com>
description Remove roundup/anypy/hashlib_.py

The hashlib_ module was being used to provide backwards compatibility
for python v2.4. Roundup has dropped support for python v2.4 so we can
get rid of it.
files
New Link / Multilink option "try_id_parsing" http://hg.code.sf.net:8000/p/roundup/code/#changeset-2ba982dcdf2c7f83944477af0ad67ce985b8cd0e Ralf Schlatterbeck rsc@runtux.com 2014-03-28T16:47:36+01:00 2014-03-28T16:47:36+01:00
changeset 2ba982dcdf2c
branch
bookmark
tag
user Ralf Schlatterbeck <rsc@runtux.com>
description New Link / Multilink option "try_id_parsing"
files
Remove keyword expansions from CVS. All regression tests passed afterwards. http://hg.code.sf.net:8000/p/roundup/code/#changeset-6e3e4f24c75376f61ae0bf0e9ee334567585c38e Eric S. Raymond esr@thyrsus.com 2011-11-16T09:51:38-05:00 2011-11-16T09:51:38-05:00
changeset 6e3e4f24c753
branch
bookmark
tag
user Eric S. Raymond <esr@thyrsus.com>
description Remove keyword expansions from CVS. All regression tests passed afterwards.
files
Add compatibility package to allow us to deal with Python versions 2.3..2.6. http://hg.code.sf.net:8000/p/roundup/code/#changeset-eddb82d0964c180bc8cc6199e2db8e7eb74a26cc Richard Jones richard@users.sourceforge.net 2009-03-12T02:52:56+00:00 2009-03-12T02:52:56+00:00
changeset eddb82d0964c
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description Add compatibility package to allow us to deal with Python versions 2.3..2.6.

Outstanding issues noted in roundup/anypy/TODO.txt
files
remove invalid, out-of-place test http://hg.code.sf.net:8000/p/roundup/code/#changeset-11e31e50c82664a87f5e05de41610518880bb140 Richard Jones richard@users.sourceforge.net 2006-08-18T01:26:19+00:00 2006-08-18T01:26:19+00:00
changeset 11e31e50c826
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description remove invalid, out-of-place test
files
hyperdb handling of empty raw values for Multilink and Password [SF#1507814] http://hg.code.sf.net:8000/p/roundup/code/#changeset-a15c15510e99e3e8a81ff20e473cc6c8427e3476 Richard Jones richard@users.sourceforge.net 2006-08-11T04:50:24+00:00 2006-08-11T04:50:24+00:00
changeset a15c15510e99
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description hyperdb handling of empty raw values for Multilink and Password [SF#1507814]
files
Centralised conversion of user-input data to hyperdb values http://hg.code.sf.net:8000/p/roundup/code/#changeset-dc43e339e607a66e8e83839f3878f37f07233930 Richard Jones richard@users.sourceforge.net 2003-11-11T00:35:14+00:00 2003-11-11T00:35:14+00:00
changeset dc43e339e607
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description Centralised conversion of user-input data to hyperdb values

(bug [SF#802405], bug [SF#817217], rfe [SF#816994])
files