[Trac] max_daysback parameter in trac.ini

Mama 4903 <[email protected]> Wed, 24 Dec 2025 05:36:23 -0800 (PST)
Newsgroups gmane.comp.version-control.subversion.trac.general
Message-ID <[email protected]>
------=_Part_654132_1481675020.1766583383033
Content-Type: multipart/alternative; 
	boundary="----=_Part_654133_396464959.1766583383033"

------=_Part_654133_396464959.1766583383033
Content-Type: text/plain; charset="UTF-8"

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.

-- 
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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To view this discussion visit https://groups.google.com/d/msgid/trac-users/41c4a313-9666-4f23-a913-ff1cb50f094fn%40googlegroups.com.

------=_Part_654133_396464959.1766583383033
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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:=C2=A0<div><br />`daysback =3D req.args.as_int('daysback', defaul=
t, min=3D1, max=3Dself.max_daysback)`<div><br />Even if `max_daysback` is -=
1, the maximum allowed value for `daysback` will be -1. However, the minimu=
m value is fixed at 1 (`min=3D1`), so `daysback` can never be greater than =
-1, making it impossible to select a value greater than 1.</div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;Trac Users&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:trac-users+unsubscribe-/[email protected]">trac-use=
rs+unsubscribe-/[email protected]</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
trac-users/41c4a313-9666-4f23-a913-ff1cb50f094fn%40googlegroups.com?utm_med=
ium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/trac-use=
rs/41c4a313-9666-4f23-a913-ff1cb50f094fn%40googlegroups.com</a>.<br />

------=_Part_654133_396464959.1766583383033--

------=_Part_654132_1481675020.1766583383033--