#3871 closed defect (wontfix)
LegendBox.py broken with .10 release
| Reported by: | Owned by: | Jonas Borgström | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | general | Version: | 0.10 |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description (last modified by )
Any page using the LegendBox Macro will throw an internal error with .10 (worked in ⇐ 0.9.6
{{{
#!LegendBox
Blah...
}}}
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 356, in dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 224, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python2.3/site-packages/trac/wiki/web_ui.py", line 134, in process_request
self._render_view(req, db, page)
File "/usr/lib/python2.3/site-packages/trac/wiki/web_ui.py", line 446, in _render_view
req.hdf['wiki'] = {
File "/usr/lib/python2.3/site-packages/trac/wiki/formatter.py", line 999, in wiki_to_html
Formatter(env, req, absurls, db).format(wikitext, out, escape_newlines)
File "/usr/lib/python2.3/site-packages/trac/wiki/formatter.py", line 793, in format
self.handle_code_block(line)
File "/usr/lib/python2.3/site-packages/trac/wiki/formatter.py", line 732, in handle_code_block
self.out.write(to_unicode(self.code_processor.process(
File "/usr/lib/python2.3/site-packages/trac/wiki/formatter.py", line 112, in process
text = self.processor(req, text)
File "/usr/lib/python2.3/site-packages/trac/wiki/formatter.py", line 100, in _macro_processor
return self.macro_provider.render_macro(req, self.name, text)
File "/usr/lib/python2.3/site-packages/trac/wiki/macros.py", line 456, in render_macro
return module.execute(req and req.hdf, content, self.env)
File "/home/www/admin/trac/gbdev/wiki-macros/LegendBox.py", line 39, in execute
return _build_field_set(hdf, '\n'.join(lines[offset:]), env, legend, color)
File "/home/www/admin/trac/gbdev/wiki-macros/LegendBox.py", line 43, in _build_field_set
html = '<fieldset style="%s"><legend style="%s">'\
File "/usr/lib/python2.3/site-packages/trac/wiki/formatter.py", line 999, in wiki_to_html
Formatter(env, req, absurls, db).format(wikitext, out, escape_newlines)
File "/usr/lib/python2.3/site-packages/trac/wiki/formatter.py", line 236, in __init__
self.href = absurls and (req or env).abs_href or (req or env).href
File "/usr/lib/python2.3/site-packages/trac/web/clearsilver.py", line 140, in __getattr__
return getattr(self.hdf, name)
AttributeError: href
Attachments (0)
Change History (4)
comment:1 by , 19 years ago
| Description: | modified (diff) |
|---|---|
| Resolution: | → wontfix |
| Status: | new → closed |
follow-up: 3 comment:2 by , 19 years ago
Hi,
Actually this macro is not on TracHacks.
It is here: http://trac.edgewall.org/wiki/ProcessorBazaar
I have emailed the listed contact (Pedro Melo), but given that the macro is on this site, I assumed this was the place to post about it.
comment:3 by , 19 years ago
Replying to anonymous:
Actually this macro is not on TracHacks.
Yeah, sorry I missed this info at first look.
This page is kind of outdated, it has been mostly used before TracHacks was born.
Actually this macro seems to be quite old and may have run out of maintenance: latest release if for 0.9, which means over a year old.
comment:4 by , 19 years ago
It might be a good idea to add a 0.10 version of this macro, showing the new style (i.e. subclassing IWikiMacroBase, single file plugin), as currently users seeing to the ProcessorBazar get a very dated taste of what's possible to do…



The code on TracHacks (macros, plugins, scripts, …) is not maintained by the Trac team.
Please contact the original author of the macro if it supported. You may also want to log a bug against this macro on TracHacks