Skip to content

Commit 1d0fd0a

Browse files
authored
Merge pull request #1650 from RogerHaase/1649-trailing
remove unwanted foo`/` from wikiconfig.py examples; fixes #1649
2 parents 0519ea1 + 8b65d56 commit 1d0fd0a

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

docs/admin/configure.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,11 +1398,11 @@ To configure custom namespaces, find the section in wikiconfig.py that looks sim
13981398
NAMESPACE_USERS: 'users',
13991399
NAMESPACE_USERPROFILES: 'userprofiles',
14001400
# namespaces for editor help files are optional, if unwanted delete here and in backends and acls
1401-
'help-common': 'help-common', # contains media files used by other language helps
1402-
'help-en': 'help-en', # replace this with help-de, help-ru, help-pt_BR etc.
1403-
# define custom namespaces if desired, trailing / below causes foo to be stored in default backend
1404-
# 'foo/': 'default',
1405-
# custom namespace with a separate backend - note absence of trailing /
1401+
NAMESPACE_HELP_COMMON: 'help-common', # contains media files used by other language helps
1402+
NAMESPACE_HELP_EN: 'help-en', # replace this with help-de, help-ru, help-pt_BR etc.
1403+
# define custom namespaces using the default backend
1404+
# 'foo': 'default',
1405+
# custom namespace with a separate backend (a wiki/data/bar directory will be created)
14061406
# 'bar': 'bar',
14071407
}
14081408
backends = {

src/moin/config/wikiconfig.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
from moin.config.default import DefaultConfig
3636
from moin.utils.interwiki import InterWikiMap
3737
from moin.storage import create_mapping
38-
from moin.constants.namespaces import NAMESPACE_DEFAULT, NAMESPACE_USERPROFILES, NAMESPACE_USERS
38+
from moin.constants.namespaces import NAMESPACE_DEFAULT, NAMESPACE_USERPROFILES,NAMESPACE_USERS, \
39+
NAMESPACE_HELP_COMMON, NAMESPACE_HELP_EN, NAMESPACE_ALL
3940

4041

4142
class Config(DefaultConfig):
@@ -150,11 +151,11 @@ class Config(DefaultConfig):
150151
NAMESPACE_USERS: 'users',
151152
NAMESPACE_USERPROFILES: 'userprofiles',
152153
# namespaces for editor help files are optional, if unwanted delete here and in backends and acls
153-
'help-common': 'help-common', # contains media files used by other language helps
154-
'help-en': 'help-en', # replace this with help-de, help-ru, help-pt_BR etc.
155-
# define custom namespaces if desired, trailing / below causes foo to be stored in default backend
156-
# 'foo/': 'default',
157-
# custom namespace with a separate backend - note absence of trailing /
154+
NAMESPACE_HELP_COMMON: 'help-common', # contains media files used by other language helps
155+
NAMESPACE_HELP_EN: 'help-en', # replace this with help-de, help-ru, help-pt_BR etc.
156+
# define custom namespaces using the default backend
157+
# 'foo': 'default',
158+
# custom namespace with a separate backend (a wiki/data/bar directory will be created)
158159
# 'bar': 'bar',
159160
}
160161
backends = {
@@ -168,7 +169,8 @@ class Config(DefaultConfig):
168169
# help namespaces are optional
169170
'help-common': None,
170171
'help-en': None,
171-
# required for bar namespace if defined above
172+
# required for foo and bar namespaces as defined above
173+
# 'foo': None,
172174
# 'bar': None,
173175
}
174176
acls = {

0 commit comments

Comments
 (0)