Modify

Opened 5 years ago

Closed 5 years ago

#4764 closed defect (fixed)

Missing macro description

Reported by: mitar Owned by: martin_s
Priority: low Component: ServerSideRedirectPlugin
Severity: normal Keywords:
Cc: mmitar@… 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 5 years ago by martin_s

  • Priority changed from normal to low
  • Resolution set to fixed
  • Status changed from new to closed

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

comment:2 Changed 5 years ago by Mitar

  • Resolution fixed deleted
  • Status changed from closed to 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 5 years ago by martin_s

  • Resolution set to fixed
  • Status changed from reopened to 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].

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from martin_s. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.