#3871: LegendBox.py broken with .10 release
-----------------------------+----------------------------------------------
Reporter: jdell@gbdev.com | Owner: jonas
Type: defect | Status: new
Priority: normal | Milestone:
Component: general | Version: 0.10
Severity: normal | Keywords:
-----------------------------+----------------------------------------------
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
--
Ticket URL: <http://trac.edgewall.org/ticket/3871>
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@googlegroups.com
To unsubscribe from this group, send email to trac-tickets-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---
-----------------------------+----------------------------------------------
Reporter: jdell@gbdev.com | Owner: jonas
Type: defect | Status: new
Priority: normal | Milestone:
Component: general | Version: 0.10
Severity: normal | Keywords:
-----------------------------+----------------------------------------------
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
--
Ticket URL: <http://trac.edgewall.org/ticket/3871>
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@googlegroups.com
To unsubscribe from this group, send email to trac-tickets-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---