Hi,

On Sat, Oct 10, 2009 at 12:25 PM, Ludovic Dubost <[email protected]> wrote:

> I'm on a local install and if I save using the save action it works
> but does not seem to register it with $doc.save()
>

WikiMacroListener is responsible for listening to document save events and
creating / registering wiki macros. It should work with $doc.save() because
this should fire a document save event. This looks like a bug, I will check
this out and report a bug (or you can do it).

Thanks.

- Asiri


>
> Envoyé de mon iPhone
>
> Le 10 oct. 2009 à 00:46, Sergiu Dumitriu <[email protected]> a écrit :
>
> > On Fri, Oct 9, 2009 at 23:28, Ludovic Dubost <[email protected]>
> > wrote:
> >>
> >> Hi,
> >>
> >> Is there a way to register a Wiki Macro through scripting. When I
> >> import a
> >> Wiki Macro it does not seem to get registered and when I do
> >> $doc.save() on
> >> it it does not register it either.
> >> I suppose it's because we intercept the save at a different level
> >> (probably
> >> on the save action).
> >>
> >> How can I workaround that ?
> >
> > Are you sure you're not trying to register a macro in a local wiki?
> > Currently they only work if they are in the main wiki.
> > --
> > http://purl.org/net/sergiu
> > _______________________________________________
> > devs mailing list
> > [email protected]
> > http://lists.xwiki.org/mailman/listinfo/devs
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
>
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to