On Wed, 11 Jan 2006 18:33:12 +0100
Lutz Frommberger <[EMAIL PROTECTED]> wrote:
> > You'll need to use either the 0.5.x branch from Subversion, or wait
> > for the 0.5.1 release that I hope I'll be able to push out today.
>
> I installed Bitten 0.5.1 and Trac 0.9.3, but now I have this HTML
> stuff in my menu bar. Can that happen?
If you see something like
<a href="/trac-cgi/trac.cgi/project/build" accesskey="5">Build Status</a>
in menu that is because Bitten changeset 335 in branch 0.5.x
misses one important Markup() call of changeset 333 in trunk.
Compare http://bitten.cmlenz.net/changeset/335#file6
and http://bitten.cmlenz.net/changeset/333#file7
(lines 102-104/86-88 in changeset 333).
I've fixed this problem with attached patch.
--
Grigory Batalov
diff -ruN Bitten-0.5.1.orig/bitten/trac_ext/web_ui.py
Bitten-0.5.1/bitten/trac_ext/web_ui.py
--- Bitten-0.5.1.orig/bitten/trac_ext/web_ui.py 2006-01-10 15:32:02 +0300
+++ Bitten-0.5.1/bitten/trac_ext/web_ui.py 2006-01-11 23:17:39 +0300
@@ -88,9 +88,9 @@
def get_navigation_items(self, req):
if not req.perm.has_permission('BUILD_VIEW'):
return
- yield 'mainnav', 'build', \
- '<a href="%s" accesskey="5">Build Status</a>' \
- % self.env.href.build()
+ yield ('mainnav', 'build', \
+ Markup('<a href="%s" accesskey="5">Build Status</a>',
+ self.env.href.build()))
# IRequestHandler methods
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac