Re: [Trac] max_daysback parameter in trac.ini

MaĆ«l <[email protected]> Tue, 6 Jan 2026 03:30:46 -0800 (PST)
Newsgroups gmane.comp.version-control.subversion.trac.general
Message-ID <[email protected]>
------=_Part_528854_1910430523.1767699046414
Content-Type: multipart/alternative; 
	boundary="----=_Part_528855_954902152.1767699046414"

------=_Part_528855_954902152.1767699046414
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I tested it and everything works, thank you!
Le vendredi 26 d=C3=A9cembre 2025 =C3=A0 07:05:40 UTC+1, Jun Omae a =C3=A9c=
rit :

> The issue has been filed in https://trac.edgewall.org/ticket/13886.
> On 2025/12/25 2:59, Jun Omae wrote:
>
> Hi,
>
> It seems that the issue is introduced in Trac 1.2,
>
> https://github.com/edgewall/trac/commit/7180d2f87a961161a09551da60e0deed6=
b86441a
>
> I'll fix it later. Thanks for the reporting!
>
> Jun Omae <[email protected]> (=E5=A4=A7=E5=89=8D =E6=BD=A4)
>
>
> On Thu, Dec 25, 2025 at 2:23 Mama 4903 <[email protected]> wrote:
>
>> I would like to set the value of the `max_daysback` parameter to -1 to=
=20
>> have unlimited daysback, but it seems this is impossible in the code=20
>> because of the line: =20
>>
>> `daysback =3D req.args.as_int('daysback', default, min=3D1,=20
>> max=3Dself.max_daysback)`=20
>>
>> Even if `max_daysback` is -1, the maximum allowed value for `daysback`=
=20
>> will be -1. However, the minimum value is fixed at 1 (`min=3D1`), so=20
>> `daysback` can never be greater than -1, making it impossible to select =
a=20
>> value greater than 1.
>> --=20
>> You received this message because you are subscribed to the Google Group=
s=20
>> "Trac Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send a=
n=20
>> email to trac-users+...-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
>> To view this discussion visit=20
>> https://groups.google.com/d/msgid/trac-users/41c4a313-9666-4f23-a913-ff1=
cb50f094fn%40googlegroups.com=20
>> <https://groups.google.com/d/msgid/trac-users/41c4a313-9666-4f23-a913-ff=
1cb50f094fn%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter>
>> .
>>
> --=20
> Jun Omae <[email protected]> (=E5=A4=A7=E5=89=8D =E6=BD=A4)
>
>

--=20
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 e=
mail to trac-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To view this discussion visit https://groups.google.com/d/msgid/trac-users/=
fe7c002b-2232-4bd7-8763-270375c2baf3n%40googlegroups.com.

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

I tested it and everything works, thank you!<br /><div class=3D"gmail_quote=
"><div dir=3D"auto" class=3D"gmail_attr">Le vendredi 26 d=C3=A9cembre 2025 =
=C3=A0 07:05:40 UTC+1, Jun Omae a =C3=A9crit=C2=A0:<br/></div><blockquote c=
lass=3D"gmail_quote" style=3D"margin: 0 0 0 0.8ex; border-left: 1px solid r=
gb(204, 204, 204); padding-left: 1ex;"><u></u>

 =20
   =20
 =20
  <div>
    <p>The issue has been filed in <a href=3D"https://trac.edgewall.org/tic=
ket/13886" target=3D"_blank" rel=3D"nofollow" data-saferedirecturl=3D"https=
://www.google.com/url?hl=3Dfr&amp;q=3Dhttps://trac.edgewall.org/ticket/1388=
6&amp;source=3Dgmail&amp;ust=3D1767785328541000&amp;usg=3DAOvVaw2oYw_jmjeb8=
WLFcE616VPZ">https://trac.edgewall.org/ticket/13886</a>.</p></div><div>
    <div>On 2025/12/25 2:59, Jun Omae wrote:<br>
    </div>
    <blockquote type=3D"cite">
     =20
      <div dir=3D"auto">Hi,</div>
      <div dir=3D"auto"><br>
      </div>
      <div dir=3D"auto">It seems that the issue is introduced in Trac 1.2,<=
/div>
      <div dir=3D"auto" style=3D"border-color:rgb(0,0,0)!important">
        <div style=3D"border-color:rgb(0,0,0)!important"><a href=3D"https:/=
/github.com/edgewall/trac/commit/7180d2f87a961161a09551da60e0deed6b86441a" =
target=3D"_blank" rel=3D"nofollow" data-saferedirecturl=3D"https://www.goog=
le.com/url?hl=3Dfr&amp;q=3Dhttps://github.com/edgewall/trac/commit/7180d2f8=
7a961161a09551da60e0deed6b86441a&amp;source=3Dgmail&amp;ust=3D1767785328541=
000&amp;usg=3DAOvVaw0NBlFWBNXPdj-ZrP64uzUV">https://github.com/edgewall/tra=
c/commit/7180d2f87a961161a09551da60e0deed6b86441a</a></div>
        <div dir=3D"auto"><br>
        </div>
        I&#39;ll fix it later. Thanks for the reporting!</div>
      <div dir=3D"auto"><br clear=3D"all">
        <div dir=3D"auto">
          <div dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmai=
l_signature">Jun Omae &lt;<a href data-email-masked rel=3D"nofollow">jun...=
@gmail.com</a>&gt;
            (=E5=A4=A7=E5=89=8D =E6=BD=A4)</div>
        </div>
      </div>
      <div><br>
      </div>
      <div><br>
        <div class=3D"gmail_quote">
          <div dir=3D"ltr" class=3D"gmail_attr">On Thu, Dec 25, 2025 at 2:2=
3
            Mama 4903 &lt;<a href data-email-masked rel=3D"nofollow">mael.f=
[email protected]</a>&gt;
            wrote:<br>
          </div>
          <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8=
ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-le=
ft-color:rgb(204,204,204)">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(&#39;daysback&#39;, default, mi=
n=3D1,
              max=3Dself.max_daysback)`
              <div><br>
                Even if `max_daysback` is -1, the maximum allowed value
                for `daysback` will be -1. However, the minimum 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>
            -- <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 email to <a href data-email-masked rel=3D"nofo=
llow">trac-users+...-/[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_medium=3Demail&amp;utm_source=3Dfooter" target=3D"_blank" rel=3D"n=
ofollow" data-saferedirecturl=3D"https://www.google.com/url?hl=3Dfr&amp;q=
=3Dhttps://groups.google.com/d/msgid/trac-users/41c4a313-9666-4f23-a913-ff1=
cb50f094fn%2540googlegroups.com?utm_medium%3Demail%26utm_source%3Dfooter&am=
p;source=3Dgmail&amp;ust=3D1767785328541000&amp;usg=3DAOvVaw1s1bPqi5sY7IQLJ=
j8daTH3">https://groups.google.com/d/msgid/trac-users/41c4a313-9666-4f23-a9=
13-ff1cb50f094fn%40googlegroups.com</a>.<br>
          </blockquote>
        </div>
      </div>
    </blockquote>
    </div><div><pre cols=3D"0">--=20
Jun Omae <a href data-email-masked rel=3D"nofollow">&lt;[email protected]&gt=
;</a> (=E5=A4=A7=E5=89=8D =E6=BD=A4)</pre>
  </div>

</blockquote></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/fe7c002b-2232-4bd7-8763-270375c2baf3n%40googlegroups.com?utm_med=
ium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/trac-use=
rs/fe7c002b-2232-4bd7-8763-270375c2baf3n%40googlegroups.com</a>.<br />

------=_Part_528855_954902152.1767699046414--

------=_Part_528854_1910430523.1767699046414--