Hello.

The following macro code worked on an older version of 0.11 but fails since
I upgraded to 0.11b1.  Could someone help me with the error message?

"""Example macro."""
from StringIO import StringIO
from trac.core import *
from trac.util import escape
from trac.util.html import Markup
from trac.wiki.formatter import Formatter
from trac.wiki.macros import WikiMacroBase

__all__ = ['HelloWorldMacro']

class HelloWorldMacro(WikiMacroBase):
        def expand_macro(self, formatter, name, args):
                text = "'''Hello!''"
                out = StringIO()
                Formatter(formatter.context).format(text, out)
                return Markup(out.getvalue())


The error message from TRAC is:
Error: Macro HelloWorld(None) failed
        __init__() takes exactly 3 arguments (2 given)

Thanks,
Ken



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to