[Moin-user] config options ignored with farmconfig.py
Ralf Gross
Ralf-Lists at ralfgross.de
Thu Feb 1 03:24:01 EST 2007
Hi,
I've four wikis that should move to a new host. Thus I thought it would be
a good idea to setup a wiki farm, instead of four individual wikis. I
follwed the instructions on this page:
http://moinmoin.wikiwikiweb.de/FarmQuestions
If I define data_underlay_dir only in farmconfig.py, I get this error:
data_underlay_dir "./underlay/" does not exists, or has incorrect
ownership or permissions.
Similar to that url_prefix = '/wikifarm' seems also to be ignored and the
default value is used:
...."GET /wiki/modern/css/common.css HTTP/1.1" 404 344....
But data_underlay_dir and url_prefix is set in my farmconfig.py:
wikis = [
("redwiki", r"^vu0em003/redwiki.*$"),
("bluewiki", r"^vu0em003/bluewiki.*$"),
]
from MoinMoin.multiconfig import DefaultConfig
class FarmConfig(DefaultConfig):
data_underlay_dir = '/data/wikis/underlay/'
url_prefix = '/wikifarm'
navi_bar = [
u'RecentChanges',
u'FindPage',
u'HelpContents',
]
theme_default = 'modern'
language_default = 'en'
page_category_regex = u'^Category[A-Z]'
page_dict_regex = u'[a-z]Dict$'
page_group_regex = u'[a-z]Group$'
page_template_regex = u'[a-z]Template$'
show_hosts = 1
show_interwiki = 1
logo_string = u''
Setting the data_underlay_dir and url_prefix options in bluewiki.py and
redwiki.py works.
Ralf
More information about the Moin-user
mailing list