max_daysback parameter in trac.ini

10 views
Skip to first unread message

Mama 4903

unread,
Dec 24, 2025, 12:23:17 PM (19 hours ago) Dec 24
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 (18 hours ago) Dec 24
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.
Reply all
Reply to author
Forward
0 new messages