#9681 closed defect (fixed)
[PATCH] Project index fails
Reported by: | Mikael Relbe | Owned by: | Mikael Relbe |
---|---|---|---|
Priority: | highest | Milestone: | 1.0 |
Component: | rendering | Version: | 0.13dev |
Severity: | blocker | Keywords: | |
Cc: | Branch: | ||
Release Notes: |
- |
||
API Changes: | |||
Internal Changes: |
Description
Project index fails as of r10176 due to incorrect parameter usage on line 699 in trac/web/main.py.
Please change to the following instead:
-
trac/web/main.py
diff --git a/trac/web/main.py b/trac/web/main.py
a b 696 696 req.hdf['projects'] = projects 697 697 req.display(template) 698 698 699 loader = TemplateLoader(loadpaths, variable_lookup='lenient', encoding='utf-8') 699 loader = TemplateLoader(loadpaths, variable_lookup='lenient', 700 default_encoding='utf-8') 700 701 tmpl = loader.load(template) 701 702 stream = tmpl.generate(**data) 702 output = stream.render('xhtml', doctype=DocType.XHTML_STRICT, encoding='utf-8') 703 output = stream.render('xhtml', doctype=DocType.XHTML_STRICT, 704 encoding='utf-8') 703 705 req.send(output, 'text/html') 704 706 705 707 except RequestDone:
Line 702 is a nit-picking change to keep line length below 79 chars, according to TracDev/CodingStyle, you know :)
Attachments (0)
Change History (6)
follow-up: 2 comment:1 by , 14 years ago
Owner: | set to |
---|
comment:2 by , 14 years ago
Replying to cboos:
Well spotted!
Did you verify the fix with genshi-3k /…/
No, it was verified with Genshi 0.6. I checked the description of milestone:0.13, which currently states "requires Genshi 0.6"… Perhaps change the requirement of Genshi version/branch instead?
comment:3 by , 14 years ago
No, no problem if you tried with Genshi 0.6. I'll check with genshi-3k, which is by no way a requirement (only a "nice to have" compatibility, and will hopefully help Simon to get his changes into mainline Genshi).
comment:4 by , 14 years ago
My proposal above is in line with r10168, so I think it's safe to just apply the patch to the Trac trunk to recover.
comment:5 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:6 by , 14 years ago
Release Notes: | modified (diff) |
---|
Well spotted!
Did you verify the fix with genshi-3k, as r10176 was actually a follow-up to r10168 meant to provide support for this experimental genshi branch? (details in r10168).