max_daysback parameter in trac.ini

38 views
Skip to first unread message

Mama 4903

unread,
Dec 24, 2025, 12:23:17 PM (13 days ago) 12/24/25
to Trac Users
I would like to set the value of the `max_daysback` parameter to -1 to have unlimited daysback, but it seems this is impossible in the code because of the line: 

`daysback = req.args.as_int('daysback', default, min=1, max=self.max_daysback)`

Even if `max_daysback` is -1, the maximum allowed value for `daysback` will be -1. However, the minimum value is fixed at 1 (`min=1`), so `daysback` can never be greater than -1, making it impossible to select a value greater than 1.

Jun Omae

unread,
Dec 24, 2025, 12:59:38 PM (13 days ago) 12/24/25
to trac-...@googlegroups.com
Hi,

It seems that the issue is introduced in Trac 1.2,


Jun Omae <jun...@gmail.com> (大前 潤)


--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/trac-users/41c4a313-9666-4f23-a913-ff1cb50f094fn%40googlegroups.com.

Jun Omae

unread,
Dec 26, 2025, 1:05:40 AM (11 days ago) 12/26/25
to trac-...@googlegroups.com

The issue has been filed in https://trac.edgewall.org/ticket/13886.

-- 
Jun Omae <jun...@gmail.com> (大前 潤)

Maël

unread,
6:30 AM (6 hours ago) 6:30 AM
to Trac Users
I tested it and everything works, thank you!
Reply all
Reply to author
Forward
0 new messages