Attachment 'farmconfig.py'
Download 1 # -*- coding: iso-8859-1 -*-
2
3 """
4 MoinMoin - example farm config
5
6 DJ / 1.0 / 08.04.2006 - Initial Release
7 DJ / 2.0 / 19.11.2009 - Rewrote for MoinMoin 1.8 as syntax changed after 1.5
8 DJ / 2.1 / 15.12.2009 - Changed wiki path, tested with 1.9
9 DJ / 2.2 / 16.12.2009 - added authentication with LDAP under MoinMoin 1.9
10
11 When used with ISAPI/WSGI under IIS, an iisreset must be issued
12 for changes in this file to apply
13
14 """
15
16 # Wikis in your farm --------------------------------------------------
17 wikis = [
18 ("Wiki1", r"^.*/wiki1.*$"),
19 ("Wiki2", r"^.*/wiki2.*$"),
20 ]
21
22
23 # Common configuration for all wikis ----------------------------------
24 from MoinMoin.config.multiconfig import DefaultConfig
25 import os.path
26
27 # Automatically calculates path based on standard OEM structures, used by subwikis
28 class ConfigPath(object):
29 # where are we...
30 ConfigDir = os.path.dirname( os.path.realpath( __file__ ) )
31 Root = os.path.dirname( os.path.realpath( (ConfigDir + "\\..") ) )
32 Common = os.path.dirname( os.path.realpath( (ConfigDir + "\\..\\common") ) )
33
34 class FarmConfig(DefaultConfig):
35
36 # Critical setup ---------------------------------------------------
37
38 data_dir = './data/'
39 data_underlay_dir = ConfigPath.Common + '/underlay/'
40 url_prefix_static = '/moin' #create an alias in IIS, changed from /moin_static185 in ver 1.8.5
41
42
43
44 # Mail --------------------------------------------------------------
45
46 mail_smarthost = "smtp.somewhere.invalid"
47 mail_from = "wiki@somewhere.invalid"
48
49 # User interface ----------------------------------------------------
50 navi_bar = [
51 u'%(page_front_page)s',
52 u'RecentChanges',
53 u'FindPage',
54 u'HelpContents',
55 ]
56
57 # The default theme anonymous or new users get
58 theme_default = 'sinorca4moin'
59
60 # Authentication --- Valid for MoinMoin > 1.9
61
62 ## Insert your LDAPAuth here...
63
64 # a list of form field names to be disabled in the UserPreferences.
65 user_form_disable = ['name', ]
66
67 # a list of form field names to be removed from the UserPreferences.
68 user_form_remove = ['password', 'password2', ]
69
70
71 # Language options --------------------------------------------------
72
73 language_default = 'en'
74
75 page_category_regex = ur'(?P<all>Category(?P<key>\S+))'
76 page_dict_regex = ur'(?P<all>(?P<key>\S+)Dict)'
77 page_group_regex = ur'(?P<all>(?P<key>\S+)Group)'
78 page_template_regex = ur'(?P<all>(?P<key>\S+)Template)'
79
80 # Content options ---------------------------------------------------
81 show_hosts = 0
82 show_interwiki = True
83 logo_string = u''
84
85 # Interwiki linking ----------------
86 shared_intermap = ConfigPath.ConfigDir + '\\intermap.txt'
87 user_homewiki = 'Wiki1'
88 user_dir = ConfigPath.Common + '\\User'
89 interwiki_preferred = ['Wiki1','Wiki2']
90 trusted_wikis = [ 'Wiki1','Wiki2']
91
92 # Valid for MoinMoin <= 1.9.0; to be changed after 1.9.0
93 cookie_path = '/'
94
95 # Permissions ---------------------
96 superuser = [u"JohnDoe", ]
97 acl_hierarchic = True
98 acl_rights_before = u"AdminGroup:admin,read,write,delete,revert"
99 acl_rights_default=u"Trusted:read,write,delete,revert Known:read,write,delete,revert ViewerGroup:read All:"
100
101
102 # show_timings = True
103 # Enable graphical charts, requires gdchart.
104 #chart_options = {'width': 600, 'height': 300}
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.