<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3199" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=116443818-15122007><FONT face=Arial
color=#0000ff size=2>You could use RequestCLI to execute the Include macro in
another request using something like this:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=116443818-15122007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=116443818-15122007><FONT face=Arial
color=#0000ff size=2>from MoinMoin.request import RequestCLI</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=116443818-15122007><FONT face=Arial
color=#0000ff size=2>from MoinMion.user import User</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=116443818-15122007><FONT face=Arial
color=#0000ff size=2>from MoinMoin.formatter.text_html import
Formatter</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=116443818-15122007><FONT face=Arial
color=#0000ff size=2>def execute(macro, args):</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=116443818-15122007> <FONT
face=Arial color=#0000ff size=2># <extract wikiname from
args></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=116443818-15122007><FONT face=Arial
color=#0000ff size=2> </FONT></SPAN><SPAN
class=116443818-15122007><FONT face=Arial color=#0000ff size=2>subreq =
RequestCLI('localhost/' + wikiname)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=116443818-15122007> <FONT
face=Arial color=#0000ff size=2>subreq.user = user.User(subreq,
name=macro.request.user.name)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=116443818-15122007><FONT face=Arial
color=#0000ff size=2> formatter =
Formatter(subreq)<BR> subreq.formatter =
formatter<BR></FONT></SPAN><SPAN class=116443818-15122007><FONT face=Arial
color=#0000ff size=2> # now call the Include macro from here
on subreq...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=116443818-15122007><FONT face=Arial
color=#0000ff size=2> ...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=116443818-15122007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=116443818-15122007><FONT face=Arial
color=#0000ff size=2>Vitaliy</FONT></SPAN></DIV><FONT face=Arial color=#0000ff
size=2></FONT><FONT face=Arial color=#0000ff size=2></FONT><FONT face=Arial
color=#0000ff size=2></FONT><FONT face=Arial color=#0000ff size=2></FONT><BR>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> moin-user-bounces@lists.sourceforge.net
[mailto:moin-user-bounces@lists.sourceforge.net] <B>On Behalf Of </B>james
bardin<BR><B>Sent:</B> Friday, December 14, 2007 11:02 PM<BR><B>To:</B>
moin-user@lists.sourceforge.net<BR><B>Subject:</B> [Moin-user] interwiki
include macro<BR></FONT><BR></DIV>
<DIV></DIV>Hello,<BR><BR>We have a bunch of departments using separate wikis,
but all on the same server in a wikifarm.<BR><BR>I would really love to have
an Include() macro that works between the wikis, something like
<<InterwikiInclude(Wikiname, PageName)>> <BR>We use a common login
system for the wikis, so usernames are transferable, and acls could be be
correctly enforced.<BR><BR>I have no problem writing the macro myself, I just
have no idea where to start.<BR>Could anyone tell me if they think this is
possible in a sane manner?
<BR><BR>Thanks<BR>-jim<BR><BR></BLOCKQUOTE></BODY></HTML>