This is an automated email from the ASF dual-hosted git repository. brondsem pushed a commit to branch db/warnings_improvements in repository https://gitbox.apache.org/repos/asf/allura.git
commit 51319f02c13c85915cf38a319055bb083bac30c3 Author: Dave Brondsema <[email protected]> AuthorDate: Tue Oct 24 11:29:52 2023 -0400 ignore warnings from inside other pkgs, fix a few warnings --- Allura/allura/ext/personal_dashboard/dashboard_main.py | 6 +++--- pytest.ini | 13 +++++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/Allura/allura/ext/personal_dashboard/dashboard_main.py b/Allura/allura/ext/personal_dashboard/dashboard_main.py index 12cf1fa40..70ae65829 100644 --- a/Allura/allura/ext/personal_dashboard/dashboard_main.py +++ b/Allura/allura/ext/personal_dashboard/dashboard_main.py @@ -18,7 +18,7 @@ import logging from tg import tmpl_context as c, app_globals as g -from tg import expose, redirect, config +from tg import expose, redirect, config, request from itertools import islice from ming.odm import session @@ -92,8 +92,8 @@ class TicketsSection(DashboardSectionBase): page = 0 limit = 25 - page_string = context['c'].form_values.get('page') - limit_string = context['c'].form_values.get('limit') + page_string = request.validation.values.get('page') + limit_string = request.validation.values.get('limit') if page_string is not None: page = int(page_string) if limit_string is not None: diff --git a/pytest.ini b/pytest.ini index 7d479aff1..1d26fdcf3 100644 --- a/pytest.ini +++ b/pytest.ini @@ -28,8 +28,21 @@ filterwarnings = ignore:insert is deprecated. Use insert_one or insert_many instead.:DeprecationWarning:timermiddleware ignore:update is deprecated. Use replace_one, update_one or update_many instead.:DeprecationWarning:timermiddleware ignore:remove is deprecated. Use delete_one or delete_many instead.:DeprecationWarning:timermiddleware + # don't let us regress on this: + error:tmpl_context.form_values:DeprecationWarning:tg.wsgiapp + # other packages' issues: ignore:Deprecated call to `pkg_resources.declare_namespace:DeprecationWarning:pkg_resources + ignore:pkg_resources is deprecated as an API:DeprecationWarning:tg.util.files + ignore:pkg_resources is deprecated as an API:DeprecationWarning:formencode + + # py3.12 + ignore::DeprecationWarning:smtpd + + # py3.13 + ignore:'cgi' is deprecated:DeprecationWarning:webob.compat + ignore:'cgi' is deprecated:DeprecationWarning:formencode.validators + # https://github.com/pallets/jinja/issues/1156 error:invalid escape sequence::jinja2.lexer
