Re: [Trac] patch to run IncludeMacro with Trac 1.6
Aleš Horák <[email protected]> Sun, 14 Sep 2025 09:27:40 +0200
| Newsgroups | gmane.comp.version-control.subversion.trac.general |
|---|---|
| Message-ID | <CAHm62qP8EwaOVoCpjNiTBThhNNLAs6+GGrU6nznXEoX6AOPw7A@mail.gmail.com> |
--000000000000a0df31063ebdd45f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, thank you. my patch was the minimum to get it to work, just fixing the errors that appeared :-) yours is more complete and functional =F0=9F=91=8D --=20 ales horak --=20 Ale=C5=A1 Hor=C3=A1k ne 14. 9. 2025 v 5:53 odes=C3=ADlatel Jun Omae <[email protected]> napsal: > Hi, > > On Sat, Sep 13, 2025 at 04:13:16AM -0700, Ales Horak wrote: > > current https://trac-hacks.org/wiki/IncludeMacro does not run under > Trac 1.6 > > due to genshi imports > > > > see the attached patch to make it functional > > > > -- > > ales horak > > Thanks for the patch! However, it seems to be incomplete. > > $ pyflakes includemacro/macros.py > includemacro/macros.py:214:59: undefined name 'TracHTMLSanitizer' > includemacro/macros.py:244:23: undefined name 'ParseError' > includemacro/macros.py:255:27: undefined name 'ParseError' > includemacro/macros.py:288:20: undefined name 'ParseError' > > Could you please try the attached patch? > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Trac Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/trac-users/oIX9bq6TkVc/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > trac-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected] > To view this discussion visit > https://groups.google.com/d/msgid/trac-users/aMY8Eia7Pi0d/sOV%40localhost= . > --=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/= CAHm62qP8EwaOVoCpjNiTBThhNNLAs6%2BGGrU6nznXEoX6AOPw7A%40mail.gmail.com. --000000000000a0df31063ebdd45f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi,<div><br></div><div>thank you. my patch was the minimum= to get it to work, just fixing the errors that appeared :-)</div><div><br>= </div><div>yours is more complete and functional=C2=A0=F0=9F=91=8D</div><di= v><br></div><div>-- <br>ales horak<br></div><div><br></div></div><div><br c= lear=3D"all"></div><div><div dir=3D"ltr" class=3D"gmail_signature"><div dir= =3D"ltr">-- <br>Ale=C5=A1 Hor=C3=A1k</div></div></div><br><br><div class=3D= "gmail_quote gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">n= e 14. 9. 2025 v=C2=A05:53 odes=C3=ADlatel Jun Omae <<a href=3D"mailto:ju= [email protected]">[email protected]</a>> napsal:<br></div><blockquote cla= ss=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid = rgb(204,204,204);padding-left:1ex">Hi,<br> <br> On Sat, Sep 13, 2025 at 04:13:16AM -0700, Ales Horak wrote:<br> > current <a href=3D"https://trac-hacks.org/wiki/IncludeMacro" rel=3D"no= referrer" target=3D"_blank">https://trac-hacks.org/wiki/IncludeMacro</a> do= es not run under Trac 1.6<br> > due to genshi imports<br> > <br> > see the attached patch to make it functional<br> > <br> > --=C2=A0<br> > ales horak<br> <br> Thanks for the patch! However, it seems to be incomplete.<br> <br> $ pyflakes includemacro/macros.py<br> includemacro/macros.py:214:59: undefined name 'TracHTMLSanitizer'<b= r> includemacro/macros.py:244:23: undefined name 'ParseError'<br> includemacro/macros.py:255:27: undefined name 'ParseError'<br> includemacro/macros.py:288:20: undefined name 'ParseError'<br> <br> Could you please try the attached patch?<br> <br> -- <br> You received this message because you are subscribed to a topic in the Goog= le Groups "Trac Users" group.<br> To unsubscribe from this topic, visit <a href=3D"https://groups.google.com/= d/topic/trac-users/oIX9bq6TkVc/unsubscribe" rel=3D"noreferrer" target=3D"_b= lank">https://groups.google.com/d/topic/trac-users/oIX9bq6TkVc/unsubscribe<= /a>.<br> To unsubscribe from this group and all its topics, send an email to <a href= =3D"mailto:trac-users%2Bunsubscribe-/[email protected]" target=3D"_blank">tra= c-users+unsubscribe-/[email protected]</a>.<br> To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/= trac-users/aMY8Eia7Pi0d/sOV%40localhost" rel=3D"noreferrer" target=3D"_blan= k">https://groups.google.com/d/msgid/trac-users/aMY8Eia7Pi0d/sOV%40localhos= t</a>.<br> </blockquote></div> <p></p> -- <br /> You received this message because you are subscribed to the Google Groups &= quot;Trac Users" 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/CAHm62qP8EwaOVoCpjNiTBThhNNLAs6%2BGGrU6nznXEoX6AOPw7A%40mail.gma= il.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/= msgid/trac-users/CAHm62qP8EwaOVoCpjNiTBThhNNLAs6%2BGGrU6nznXEoX6AOPw7A%40ma= il.gmail.com</a>.<br /> --000000000000a0df31063ebdd45f--