Package: trac-subcomponents
Version: 1.2.0+hga86f0413121f-3
Severity: grave
Tags: patch, upstream

grave, because it makes the package in question mostly unusable

Trac queries don't work anymore, if this plugin is installed and enabled.
One gets a Python exception:
"UnicodeError: source returned bytes, but no encoding specified"

Problem description and patch here http://trac-hacks.org/ticket/11752 are OK:

diff -r a86f0413121f subcomponents/web_ui.py
--- a/subcomponents/web_ui.py   Sun Jan 19 18:06:51 2014 +0100
+++ b/subcomponents/web_ui.py   Wed Aug 06 02:43:29 2014 -0700
@@ -134,9 +134,8 @@
stream |= Transformer("//div[@class='field'][1]").after(self._build_renamechildren_field())
         elif req.path_info.startswith('/query'):
# We need to load our script after the initializeFilters() call done by Trac - html = HTML('<script type="text/javascript" charset="utf-8" src="' +
-                        req.href.base +
- '/chrome/subcomponents/componentselect.js"></script>')
+            html = tag.script(type='text/javascript', charset='utf-8',
+ src=req.href.chrome('subcomponents/componentselect.js'))
             stream |= Transformer('//head').append(html)
         return stream


--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to