[Moin-user] macro formatter
nuno baldaia
nuno at tomatique.com
Tue Oct 3 05:31:33 EDT 2006
Hi again
I think I got the solution::
def execute(macro, args):
_ = macro.request.getText
return _('= Title 1 =')
thanks anyway...
nuno.
On Oct 3, 2006, at 9:27 AM, nuno baldaia wrote:
> Hello
>
> The following little example is useful to explain what I need:
> In a macro like this:...
>
> def execute(macro, args):
> return macro.formatter.text('= Title 1 =')
>
> ...I get the raw text '= Title 1 =' on the page where I'm calling the
> macro (as it was expected).
> What I need is to force the current page formatting to be applied to
> the text that the macro is returning to obtain (in this example) the
> HTML heading, instead of the raw text '= Title 1 =' .
> Can you help me on this please?
>
> Thanks,
> nuno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/moin-user/attachments/20061003/e32acc4c/attachment.html>
More information about the Moin-user
mailing list