Attachment 'farmconfig.py'
Download 1 # -*- coding: iso-8859-1 -*-
2 # IMPORTANT! This encoding (charset) setting MUST be correct! If you live in a
3 # western country and you don't know that you use utf-8, you probably want to
4 # use iso-8859-1 (or some other iso charset). If you use utf-8 (a Unicode
5 # encoding) you MUST use: coding: utf-8
6 # That setting must match the encoding your editor uses when you modify the
7 # settings below. If it does not, special non-ASCII chars will be wrong.
8
9 """
10 MoinMoin - Configuration for a wiki farm
11
12 If you run a single wiki only, you can keep the "wikis" list "as is"
13 (it has a single rule mapping all requests to mywiki.py).
14
15 Note that there are more config options than you'll find in
16 the version of this file that is installed by default; see
17 the module MoinMoin.config.multiconfig for a full list of names and their
18 default values.
19
20 Also, the URL http://moinmo.in/HelpOnConfiguration has
21 a list of config options.
22 """
23
24
25 # Wikis in your farm --------------------------------------------------
26
27 # If you run multiple wikis, you need this list of pairs (wikiname, url
28 # regular expression). moin processes that list and tries to match the
29 # regular expression against the URL of this request - until it matches.
30 # Then it loads the <wikiname>.py config for handling that request.
31
32 # Important:
33 # * the left part is the wikiname enclosed in double quotes
34 # * the left part must be a valid python module name, so better use only
35 # lower letters "a-z" and "_". Do not use blanks or "-" there!!!
36 # * the right part is the url re, use r"..." for it
37 # * in the right part ".*" means "everything". Just "*" does not work like
38 # for filenames on the shell / commandline, you must use ".*" as it is a RE.
39 # * in the right part, "^" means "beginning" and "$" means "end"
40
41 wikis = [
42
43 # wikiname, url regular expression
44 # ---------------------------------------------------------------
45 ("mywiki-en", r"^http://127.0.0.1/en.*"), # MyWiki - English
46 ("mywiki-fr", r"^http://127.0.0.1/fr.*"), # MyWiki - French
47 ("mywiki-es", r"^http://127.0.0.1/es.*"), # MyWiki - Spanish
48 #("mywiki", r".*"), # this is ok for a single wiki
49
50 # for multiple wikis, do something like this:
51 #("wiki1", r"^http://wiki1\.example\.org/.*$"),
52 #("wiki2", r"^https?://wiki2\.example\.org/.*$"),
53 ]
54
55
56 # Common configuration for all wikis ----------------------------------
57
58 # Everything that should be configured the same way should go here,
59 # anything else that should be different should go to the single wiki's
60 # config.
61 # In that single wiki's config, we will use the class FarmConfig we define
62 # below as the base config settings and only override what's different.
63 #
64 # In exactly the same way, we first include MoinMoin's Config Defaults here -
65 # this is to get everything to sane defaults, so we need to change only what
66 # we like to have different:
67
68 from MoinMoin.config import multiconfig, url_prefix_static
69
70 # Now we subclass this DefaultConfig. This means that we inherit every setting
71 # from the DefaultConfig, except those we explicitely define different.
72
73 class FarmConfig(multiconfig.DefaultConfig):
74
75 # Critical setup ---------------------------------------------------
76
77 # The URL prefix we use to access the static stuff (img, css, js).
78 # Note: moin runs a static file server at url_prefix_static path (relative
79 # to the script url).
80 # If you run your wiki script at the root of your site (/), just do NOT
81 # use this setting and it will automatically work.
82 # If you run your wiki script at /mywiki, you need to use this:
83 #url_prefix_static = '/mywiki' + url_prefix_static
84 # If you need different url_prefix_static setups for your wikis,
85 # you'll have to do it in each wiki's config.
86
87 # Security ----------------------------------------------------------
88
89 # This is checked by some rather critical and potentially harmful actions,
90 # like despam or PackageInstaller action:
91 superuser = [u"FranklinPiat", ]
92
93 # IMPORTANT: grant yourself admin rights! replace YourName with
94 # your user name. See HelpOnAccessControlLists for more help.
95 # All acl_rights_xxx options must use unicode [Unicode]
96 #acl_rights_before = u"YourName:read,write,delete,revert,admin"
97
98 # Link spam protection for public wikis (uncomment to enable).
99 # Needs a reliable internet connection.
100 #from MoinMoin.security.antispam import SecurityPolicy
101
102
103 # Mail --------------------------------------------------------------
104
105 # Configure to enable subscribing to pages (disabled by default) or
106 # sending forgotten passwords.
107
108 # SMTP server, e.g. "mail.provider.com" (empty or None to disable mail)
109 #mail_smarthost = ""
110
111 # The return address, e.g u"Jürgen Wiki <noreply@mywiki.org>" [Unicode]
112 #mail_from = u""
113
114 # "user pwd" if you need to use SMTP AUTH
115 #mail_login = ""
116
117
118 # User interface ----------------------------------------------------
119
120 # Add your wikis important pages at the end. It is not recommended to
121 # remove the default links. Leave room for user links - don't use
122 # more than 6 short items.
123 # You MUST use Unicode strings here, but you need not use localized
124 # page names for system and help pages, those will be used automatically
125 # according to the user selected language. [Unicode]
126 navi_bar = [
127 # If you want to show your page_front_page here:
128 #u'%(page_front_page)s',
129 u'RecentChanges',
130 u'FindPage',
131 u'HelpContents',
132 ]
133
134 # The default theme anonymous or new users get
135 theme_default = 'modern'
136
137
138 # Language options --------------------------------------------------
139
140 # See http://moinmo.in/ConfigMarket for configuration in
141 # YOUR language that other people contributed.
142
143 # The main wiki language, set the direction of the wiki pages
144 language_default = 'en'
145
146 # the following regexes should match the complete name when used in free text
147 # the group 'all' shall match all, while the group 'key' shall match the key only
148 # e.g. CategoryFoo -> group 'all' == CategoryFoo, group 'key' == Foo
149 # moin's code will add ^ / $ at beginning / end when needed
150 # You must use Unicode strings here [Unicode]
151 page_category_regex = ur'(?P<all>Category(?P<key>\S+))'
152 page_dict_regex = ur'(?P<all>(?P<key>\S+)Dict)'
153 page_group_regex = ur'(?P<all>(?P<key>\S+)Group)'
154 page_template_regex = ur'(?P<all>(?P<key>\S+)Template)'
155
156 # Content options ---------------------------------------------------
157
158 # Show users hostnames in RecentChanges
159 show_hosts = 1
160
161 # Show the interwiki name (and link it to page_front_page) in the Theme,
162 # nice for farm setups or when your logo does not show the wiki's name.
163 show_interwiki = 1
164 logo_string = u''
165
166 # Enable graphical charts, requires gdchart.
167 #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.