Mailing List Archive

[The Trac Project] #3871: LegendBox.py broken with .10 release
#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
-~----------~----~----~----~------~----~------~--~---
Re: [The Trac Project] #3871: LegendBox.py broken with .10 release [ In reply to ]
#3871: LegendBox.py broken with .10 release
-----------------------------+----------------------------------------------
Reporter: jdell@gbdev.com | 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@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
-~----------~----~----~----~------~----~------~--~---
Re: [The Trac Project] #3871: LegendBox.py broken with .10 release [ In reply to ]
#3871: LegendBox.py broken with .10 release
-----------------------------+----------------------------------------------
Reporter: jdell@gbdev.com | Owner: jonas
Type: defect | Status: closed
Priority: normal | Milestone:
Component: general | Version: 0.10
Severity: normal | Resolution: wontfix
Keywords: |
-----------------------------+----------------------------------------------
Comment (by anonymous):

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.

--
Ticket URL: <http://trac.edgewall.org/ticket/3871#comment:2>
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
-~----------~----~----~----~------~----~------~--~---
Re: [The Trac Project] #3871: LegendBox.py broken with .10 release [ In reply to ]
#3871: LegendBox.py broken with .10 release
-----------------------------+----------------------------------------------
Reporter: jdell@gbdev.com | Owner: jonas
Type: defect | Status: closed
Priority: normal | Milestone:
Component: general | Version: 0.10
Severity: normal | Resolution: wontfix
Keywords: |
-----------------------------+----------------------------------------------
Comment (by eblot):

Replying to [comment:2 anonymous]:
> Actually this macro is not on TracHacks.

Yeah, sorry I missed this info at first look.[[BR]]
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 [milestone:0.9], which means over a
year old.

--
Ticket URL: <http://trac.edgewall.org/ticket/3871#comment:3>
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
-~----------~----~----~----~------~----~------~--~---
Re: [The Trac Project] #3871: LegendBox.py broken with .10 release [ In reply to ]
#3871: LegendBox.py broken with .10 release
-----------------------------+----------------------------------------------
Reporter: jdell@gbdev.com | Owner: jonas
Type: defect | Status: closed
Priority: normal | Milestone:
Component: general | Version: 0.10
Severity: normal | Resolution: wontfix
Keywords: |
-----------------------------+----------------------------------------------
Comment (by cboos):

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...

--
Ticket URL: <http://trac.edgewall.org/ticket/3871#comment:4>
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
-~----------~----~----~----~------~----~------~--~---