Modify ↓
Opened 17 years ago
Closed 17 years ago
#4764 closed defect (fixed)
Missing macro description
| Reported by: | Mitar | Owned by: | Martin Scharrer |
|---|---|---|---|
| Priority: | low | Component: | ServerSideRedirectPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Mitar | Trac Release: | 0.11 |
Description
Macro description is missing and WikiMacros shows:
Error: Can't get description for macro redirect 'ServerSideRedirectPlugin' object has no attribute 'get_macro_description'
It would be great if a description would be added with few examples.
Attachments (0)
Change History (3)
comment:1 Changed 17 years ago by
| Priority: | normal → low |
|---|---|
| Resolution: | → fixed |
| Status: | new → closed |
comment:2 Changed 17 years ago by
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
It looks like a great description, but it still does not show properly on the WikiMacros list. It is necessary to change Python class definition from:
class ServerSideRedirectPlugin (Component):
to:
from trac.wiki.macros import WikiMacroBase class ServerSideRedirectPlugin(WikiMacroBase):
Then it works.
comment:3 Changed 17 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | reopened → closed |
Thank you so much for pointing this out. I don't know why the class was wrong. It came maybe from the template I used. This was correct in all my other macros. I changed this, see [5356].
Note: See
TracTickets for help on using
tickets.



Added some documentation in [5354]. Have a look if it's working correctly for you and reopen this ticket if it doesn't.
Best Regards, Martin