This is an automated email from the ASF dual-hosted git repository.
dill0wn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git
The following commit(s) were added to refs/heads/master by this push:
new 241e5ff3e ignore warnings from inside other pkgs, fix a few warnings
241e5ff3e is described below
commit 241e5ff3eb0af8a5566bfaa03a884eb8aaad34bd
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