Modify

Opened 15 years ago

Closed 15 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 15 years ago by Martin Scharrer

Priority: normallow
Resolution: fixed
Status: newclosed

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 15 years ago by Mitar

Resolution: fixed
Status: closedreopened

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 15 years ago by Martin Scharrer

Resolution: fixed
Status: reopenedclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Martin Scharrer.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.