[moin-user] own wiki for userpages of farm

Molecki, Christian (STL) Christian.Molecki at stala.bwl.de
Wed Jun 28 04:56:40 EDT 2017


Hello Paul,

thanks for your ideas.
The solution was to add the InterWiki Name into the intermap.txt

With "shared_intermap" I can use one file for all instances.
Curiously the path of the file, has to be between square brackets like shared_intermap = ['/path/to/intermap.txt']

Mit freundlichen Grüßen
Christian Molecki
--------------------------------------------
Referat 14: Systemtechnik und Datenmanagement
OE 143: Systemtechnik, Großrechner, Internettechnik, Datenmanagement

-----Ursprüngliche Nachricht-----
Von: moin-user [mailto:moin-user-bounces+christian.molecki=stala.bwl.de at python.org] Im Auftrag von Paul Boddie
Gesendet: Dienstag, 27. Juni 2017 23:26
An: moin-user at python.org
Betreff: Re: [moin-user] own wiki for userpages of farm

On Monday 26. June 2017 14.05.16 Molecki, Christian (STL) wrote:
> Hello,
> 
> we have a moinmoin farm with different instances.
> So I configured a shared authentication for these instances.
> 
> If the user has a homepage, this one is only accessible in the respective
> instance. I like to configure that the homepages of all users are in one
> instance and accessible from all other ones.
> 
> I create a own UserWiki and configured the InterWiki name in every instance
> and the user_homewiki in the farmconfig.py.

Right. So, you have a definition like this in farmconfig.py:

user_homewiki = u"UserWiki"

> If I want to create a homepage for the current user, by clicking on the
> username at the top of the page, the wiki wants to create a page named
> "InterWiki".

It looks like the function that tries to identify the InterWiki reference 
(MoinMoin.wikiutil.resolve_interwiki) fails to find the wiki (UserWiki in your 
case) and helpfully returns a reference to the InterWiki page.

> What's wrong?
> Do I need a InterWiki-List with all instances an their InterWiki names? If
> yes, how can I create that?

The InterWikiMap page could probably be modified to include UserWiki. I guess 
you'd have to do that on all wikis, though. But it also seems that you can 
have a global map of InterWiki definitions, too:

https://moinmo.in/HelpOnConfiguration#paths

The shared_intermap setting seems to allow you to specify the location of a 
file, apparently containing definitions in the same format as the InterWikiMap 
page, that can hold a definition for UserWiki. I notice that an interwiki.txt 
file residing in a wiki's data directory can also do this job as well.

Anyway, I hope this gives you a few ideas.

Paul
_______________________________________________
moin-user mailing list
moin-user at python.org
https://mail.python.org/mailman/listinfo/moin-user


More information about the moin-user mailing list