
noreply at edgewall
Oct 5, 2006, 12:33 PM
Post #2 of 5
(1197 views)
Permalink
|
|
Re: [The Trac Project] #3871: LegendBox.py broken with .10 release
[In reply to]
|
|
#3871: LegendBox.py broken with .10 release -----------------------------+---------------------------------------------- Reporter: jdell [at] gbdev | Owner: jonas Type: defect | Status: closed Priority: normal | Milestone: Component: general | Version: 0.10 Severity: normal | Resolution: wontfix Keywords: | -----------------------------+---------------------------------------------- Changes (by eblot): * status: new => closed * resolution: => wontfix Old description: > Any page using the [http://trac.edgewall.org/wiki/ProcessorBazaar > 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 New description: Any page using the [http://trac.edgewall.org/wiki/ProcessorBazaar 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 }}} Comment: 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 -- Ticket URL: <http://trac.edgewall.org/ticket/3871#comment:1> The Trac Project <http://trac.edgewall.org/> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Tickets" group. To post to this group, send email to trac-tickets [at] googlegroups To unsubscribe from this group, send email to trac-tickets-unsubscribe [at] googlegroups For more options, visit this group at http://groups.google.se/group/trac-tickets -~----------~----~----~----~------~----~------~--~---
|