comparison MoinMoin/multiconfig.py @ 729:8e8130a1f46b

some cosmetic changes to config/multiconfig
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 27 May 2006 23:06:04 +0200
parents 7df204e270ff
children 87cf4c0aac44
comparison
equal deleted inserted replaced
728:b33a172bcb0c 729:8e8130a1f46b
162 162
163 163
164 class DefaultConfig: 164 class DefaultConfig:
165 """ default config values """ 165 """ default config values """
166 166
167 # All acl_right lines must use unicode! 167 # All acl_rights_* lines must use unicode!
168 acl_rights_default = u"Trusted:read,write,delete,revert Known:read,write,delete,revert All:read,write" 168 acl_rights_default = u"Trusted:read,write,delete,revert Known:read,write,delete,revert All:read,write"
169 acl_rights_before = u"" 169 acl_rights_before = u""
170 acl_rights_after = u"" 170 acl_rights_after = u""
171 acl_rights_valid = ['read', 'write', 'delete', 'revert', 'admin'] 171 acl_rights_valid = ['read', 'write', 'delete', 'revert', 'admin']
172 172
188 backup_restore_target_dir = '/tmp' 188 backup_restore_target_dir = '/tmp'
189 189
190 bang_meta = 1 190 bang_meta = 1
191 caching_formats = ['text_html'] 191 caching_formats = ['text_html']
192 changed_time_fmt = '%H:%M' 192 changed_time_fmt = '%H:%M'
193
193 # chars_{upper,lower,digits,spaces} see MoinMoin/util/chartypes.py 194 # chars_{upper,lower,digits,spaces} see MoinMoin/util/chartypes.py
195
194 # if you have gdchart, add something like 196 # if you have gdchart, add something like
195 # chart_options = {'width = 720, 'height': 540} 197 # chart_options = {'width = 720, 'height': 540}
196 chart_options = None 198 chart_options = None
199
197 config_check_enabled = 0 200 config_check_enabled = 0
198 cookie_domain = None # use '.domain.tld" for a farm with hosts in that domain 201 cookie_domain = None # use '.domain.tld" for a farm with hosts in that domain
199 cookie_path = None # use '/wikifarm" for a farm with pathes below that path 202 cookie_path = None # use '/wikifarm" for a farm with pathes below that path
200 cookie_lifetime = 12 # 12 hours from now 203 cookie_lifetime = 12 # 12 hours from now
204
201 data_dir = './data/' 205 data_dir = './data/'
202 data_underlay_dir = './underlay/' 206 data_underlay_dir = './underlay/'
207
203 date_fmt = '%Y-%m-%d' 208 date_fmt = '%Y-%m-%d'
204 datetime_fmt = '%Y-%m-%d %H:%M:%S' 209 datetime_fmt = '%Y-%m-%d %H:%M:%S'
210
205 default_markup = 'wiki' 211 default_markup = 'wiki'
206 docbook_html_dir = r"/usr/share/xml/docbook/stylesheet/nwalsh/html/" # correct for debian sarge 212 docbook_html_dir = r"/usr/share/xml/docbook/stylesheet/nwalsh/html/" # correct for debian sarge
213
207 editor_default = 'text' # which editor is called when nothing is specified 214 editor_default = 'text' # which editor is called when nothing is specified
208 editor_ui = 'freechoice' # which editor links are shown on user interface 215 editor_ui = 'freechoice' # which editor links are shown on user interface
209 editor_force = False 216 editor_force = False
210 editor_quickhelp = { # editor markup hints quickhelp 217 editor_quickhelp = { # editor markup hints quickhelp
211 'wiki': _("""\ 218 'wiki': _("""\
247 # and in the code use: 254 # and in the code use:
248 # if cfg.hacks.get('feature', False): <doit> 255 # if cfg.hacks.get('feature', False): <doit>
249 # A non-existing hack key should ever mean False, None, "", [] or {}! 256 # A non-existing hack key should ever mean False, None, "", [] or {}!
250 257
251 hosts_deny = [] 258 hosts_deny = []
259
252 html_head = '' 260 html_head = ''
253 html_head_queries = '''<meta name="robots" content="noindex,nofollow">\n''' 261 html_head_queries = '''<meta name="robots" content="noindex,nofollow">\n'''
254 html_head_posts = '''<meta name="robots" content="noindex,nofollow">\n''' 262 html_head_posts = '''<meta name="robots" content="noindex,nofollow">\n'''
255 html_head_index = '''<meta name="robots" content="index,follow">\n''' 263 html_head_index = '''<meta name="robots" content="index,follow">\n'''
256 html_head_normal = '''<meta name="robots" content="index,nofollow">\n''' 264 html_head_normal = '''<meta name="robots" content="index,nofollow">\n'''
316 'xml': ("%(q_page_name)s?action=show&amp;mimetype=text/xml", _("XML"), "xml"), 324 'xml': ("%(q_page_name)s?action=show&amp;mimetype=text/xml", _("XML"), "xml"),
317 'print': ("%(q_page_name)s?action=print", _("Print"), "print"), 325 'print': ("%(q_page_name)s?action=print", _("Print"), "print"),
318 'view': ("%(q_page_name)s", _("View"), "view"), 326 'view': ("%(q_page_name)s", _("View"), "view"),
319 'up': ("%(q_page_parent_page)s", _("Up"), "up"), 327 'up': ("%(q_page_parent_page)s", _("Up"), "up"),
320 } 328 }
329
321 refresh = None # (minimum_delay, type), e.g.: (2, 'internal') 330 refresh = None # (minimum_delay, type), e.g.: (2, 'internal')
322 rss_cache = 60 # suggested caching time for RecentChanges RSS, in seconds 331 rss_cache = 60 # suggested caching time for RecentChanges RSS, in seconds
323 shared_intermap = None # can be string or list of strings (filenames) 332 shared_intermap = None # can be string or list of strings (filenames)
324 show_hosts = 1 333 show_hosts = 1
325 show_interwiki = 0 334 show_interwiki = 0
347 } 356 }
348 surge_lockout_time = 3600 # secs you get locked out when you ignore warnings 357 surge_lockout_time = 3600 # secs you get locked out when you ignore warnings
349 358
350 theme_default = 'modern' 359 theme_default = 'modern'
351 theme_force = False 360 theme_force = False
361
352 trail_size = 5 362 trail_size = 5
353 tz_offset = 0.0 # default time zone offset in hours from UTC 363 tz_offset = 0.0 # default time zone offset in hours from UTC
364
354 user_autocreate = False # do we auto-create user profiles 365 user_autocreate = False # do we auto-create user profiles
355 user_email_unique = True # do we check whether a user's email is unique? 366 user_email_unique = True # do we check whether a user's email is unique?
356 367
357 # a regex of HTTP_USER_AGENTS that should be excluded from logging 368 # a regex of HTTP_USER_AGENTS that should be excluded from logging
358 # and receive a FORBIDDEN for anything except viewing a page 369 # and receive a FORBIDDEN for anything except viewing a page
384 ('disabled', lambda _: _('Disable this account forever')), 395 ('disabled', lambda _: _('Disable this account forever')),
385 # if an account is disabled, it may be used for looking up 396 # if an account is disabled, it may be used for looking up
386 # id -> username for page info and recent changes, but it 397 # id -> username for page info and recent changes, but it
387 # is not usable for the user any more: 398 # is not usable for the user any more:
388 ] 399 ]
400
389 user_checkbox_defaults = {'mailto_author': 0, 401 user_checkbox_defaults = {'mailto_author': 0,
390 'edit_on_doubleclick': 0, 402 'edit_on_doubleclick': 0,
391 'remember_last_visit': 0, 403 'remember_last_visit': 0,
392 'show_nonexist_qm': nonexist_qm, 404 'show_nonexist_qm': nonexist_qm,
393 'show_page_trail': 1, 405 'show_page_trail': 1,
396 'show_fancy_diff': 1, 408 'show_fancy_diff': 1,
397 'wikiname_add_spaces': 0, 409 'wikiname_add_spaces': 0,
398 'remember_me': 1, 410 'remember_me': 1,
399 'want_trivial': 0, 411 'want_trivial': 0,
400 } 412 }
413
401 # don't let the user change those 414 # don't let the user change those
402 # user_checkbox_disable = ['disabled', 'want_trivial'] 415 # user_checkbox_disable = ['disabled', 'want_trivial']
403 user_checkbox_disable = [] 416 user_checkbox_disable = []
404 417
405 # remove those checkboxes: 418 # remove those checkboxes:
420 ##('', _('Editor shown on UI'), [self._editor_ui_select()]) 433 ##('', _('Editor shown on UI'), [self._editor_ui_select()])
421 ##('', _('Time zone'), [self._tz_select()]) 434 ##('', _('Time zone'), [self._tz_select()])
422 ##('', _('Date format'), [self._dtfmt_select()]) 435 ##('', _('Date format'), [self._dtfmt_select()])
423 ##('', _('Preferred language'), [self._lang_select()]) 436 ##('', _('Preferred language'), [self._lang_select()])
424 ] 437 ]
438
425 user_form_defaults = { # key: default 439 user_form_defaults = { # key: default
426 'name': '', 440 'name': '',
427 'aliasname': '', 441 'aliasname': '',
428 'password': '', 442 'password': '',
429 'password2': '', 443 'password2': '',
430 'email': '', 444 'email': '',
431 'css_url': '', 445 'css_url': '',
432 'edit_rows': "20", 446 'edit_rows': "20",
433 } 447 }
448
434 # don't let the user change those, but show them: 449 # don't let the user change those, but show them:
435 #user_form_disable = ['name', 'aliasname', 'email',] 450 #user_form_disable = ['name', 'aliasname', 'email',]
436 user_form_disable = [] 451 user_form_disable = []
437 452
438 # remove those completely: 453 # remove those completely: