comparison MoinMoin/config/multiconfig.py @ 3483:0392c7258982

builtin default config: improve sorting
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 06 Apr 2008 20:02:43 +0200
parents b0a794176dc4
children aff01569df82
comparison
equal deleted inserted replaced
3482:b0a794176dc4 3483:0392c7258982
283 default_markup = 'wiki' 283 default_markup = 'wiki'
284 docbook_html_dir = r"/usr/share/xml/docbook/stylesheet/nwalsh/html/" # correct for debian sarge 284 docbook_html_dir = r"/usr/share/xml/docbook/stylesheet/nwalsh/html/" # correct for debian sarge
285 285
286 edit_bar = ['Edit', 'Comments', 'Discussion', 'Info', 'Subscribe', 'Quicklink', 'Attachments', 'ActionsMenu'] 286 edit_bar = ['Edit', 'Comments', 'Discussion', 'Info', 'Subscribe', 'Quicklink', 'Attachments', 'ActionsMenu']
287 editor_default = 'text' # which editor is called when nothing is specified 287 editor_default = 'text' # which editor is called when nothing is specified
288 editor_force = False # force using the default editor
288 editor_ui = 'freechoice' # which editor links are shown on user interface 289 editor_ui = 'freechoice' # which editor links are shown on user interface
289 editor_force = False
290 editor_quickhelp = { 290 editor_quickhelp = {
291 # editor markup hints quickhelp 291 # editor markup hints quickhelp
292 # MUST be in wiki markup, even if the help is not for the wiki parser! 292 # MUST be in wiki markup, even if the help is not for the wiki parser!
293 'wiki': _(u"""\ 293 'wiki': _(u"""\
294 Emphasis:: <<Verbatim('')>>''italics''<<Verbatim('')>>; <<Verbatim(''')>>'''bold'''<<Verbatim(''')>>; <<Verbatim(''''')>>'''''bold italics'''''<<Verbatim(''''')>>; <<Verbatim('')>>''mixed ''<<Verbatim(''')>>'''''bold'''<<Verbatim(''')>> and italics''<<Verbatim('')>>; <<Verbatim(----)>> horizontal rule. 294 Emphasis:: <<Verbatim('')>>''italics''<<Verbatim('')>>; <<Verbatim(''')>>'''bold'''<<Verbatim(''')>>; <<Verbatim(''''')>>'''''bold italics'''''<<Verbatim(''''')>>; <<Verbatim('')>>''mixed ''<<Verbatim(''')>>'''''bold'''<<Verbatim(''')>> and italics''<<Verbatim('')>>; <<Verbatim(----)>> horizontal rule.
339 # hacks = { 'feature': True, ...} 339 # hacks = { 'feature': True, ...}
340 # and in the code use: 340 # and in the code use:
341 # if cfg.hacks.get('feature', False): <doit> 341 # if cfg.hacks.get('feature', False): <doit>
342 # A non-existing hack key should ever mean False, None, "", [] or {}! 342 # A non-existing hack key should ever mean False, None, "", [] or {}!
343 343
344 history_count = (100, 200) # (default_revisions_shown, max_revisions_shown)
345
344 hosts_deny = [] 346 hosts_deny = []
345 347
346 html_head = '' 348 html_head = ''
347 html_head_queries = '''<meta name="robots" content="noindex,nofollow">\n''' 349 html_head_queries = '''<meta name="robots" content="noindex,nofollow">\n'''
348 html_head_posts = '''<meta name="robots" content="noindex,nofollow">\n''' 350 html_head_posts = '''<meta name="robots" content="noindex,nofollow">\n'''
349 html_head_index = '''<meta name="robots" content="index,follow">\n''' 351 html_head_index = '''<meta name="robots" content="index,follow">\n'''
350 html_head_normal = '''<meta name="robots" content="index,nofollow">\n''' 352 html_head_normal = '''<meta name="robots" content="index,nofollow">\n'''
351 html_pagetitle = None 353 html_pagetitle = None
352
353 history_count = (100, 200) # (default_revisions_shown, max_revisions_shown)
354 354
355 interwikiname = None # our own interwikiname. choose wisely and never change! 355 interwikiname = None # our own interwikiname. choose wisely and never change!
356 interwiki_preferred = [] # list of wiki names to show at top of interwiki list 356 interwiki_preferred = [] # list of wiki names to show at top of interwiki list
357 357
358 language_default = 'en' 358 language_default = 'en'
512 quicklinks_default = [] # preload user quicklinks with this page list 512 quicklinks_default = [] # preload user quicklinks with this page list
513 513
514 refresh = None # (minimum_delay, type), e.g.: (2, 'internal') 514 refresh = None # (minimum_delay, type), e.g.: (2, 'internal')
515 rss_cache = 60 # suggested caching time for RecentChanges RSS, in seconds 515 rss_cache = 60 # suggested caching time for RecentChanges RSS, in seconds
516 516
517 sistersites = [ 517 search_results_per_page = 10
518 #('Self', 'http://localhost:8080/?action=sisterpages'), 518
519 #('EmacsWiki', 'http://www.emacswiki.org/cgi-bin/test?action=sisterpages'), 519 session_handler = session.DefaultSessionHandler()
520 #('JspWiki', 'http://www.jspwiki.org/SisterSites.jsp'), 520 session_id_handler = session.MoinCookieSessionIDHandler()
521 ] # list of (sistersitename, sisterpagelistfetchurl)
522 521
523 shared_intermap = None # can be string or list of strings (filenames) 522 shared_intermap = None # can be string or list of strings (filenames)
524 523
525 show_hosts = True # show hostnames on RecentChanges / info/history action 524 show_hosts = True # show hostnames on RecentChanges / info/history action
526 show_interwiki = False # show our interwiki name (usually in front of the page name) 525 show_interwiki = False # show our interwiki name (usually in front of the page name)
527 show_names = True # show editor names on RecentChanges / info/history action 526 show_names = True # show editor names on RecentChanges / info/history action
528 show_section_numbers = 0 # enumerate sections (headlines) by default? 527 show_section_numbers = 0 # enumerate sections (headlines) by default?
529 show_timings = False # show some timing stats (usually in the footer) 528 show_timings = False # show some timing stats (usually in the footer)
530 show_version = False # show moin version info / (C) (depends on theme) 529 show_version = False # show moin version info / (C) (depends on theme)
531 530
531 sistersites = [
532 #('Self', 'http://localhost:8080/?action=sisterpages'),
533 #('EmacsWiki', 'http://www.emacswiki.org/cgi-bin/test?action=sisterpages'),
534 #('JspWiki', 'http://www.jspwiki.org/SisterSites.jsp'),
535 ] # list of (sistersitename, sisterpagelistfetchurl)
536
532 siteid = 'default' 537 siteid = 'default'
538 sitename = u'Untitled Wiki' # Wiki identity
539
533 stylesheets = [] # list of tuples (media, csshref) to insert after theme css, before user css 540 stylesheets = [] # list of tuples (media, csshref) to insert after theme css, before user css
534 541
535 _subscribable_events = None # A list of event types that user can subscribe to 542 _subscribable_events = None # A list of event types that user can subscribe to
536 subscribed_pages_default = [] # preload user subscribed pages with this page list 543 subscribed_pages_default = [] # preload user subscribed pages with this page list
537 email_subscribed_events_default = [ 544 email_subscribed_events_default = [
541 PageCopiedEvent.__name__, 548 PageCopiedEvent.__name__,
542 PageRevertedEvent.__name__, 549 PageRevertedEvent.__name__,
543 FileAttachedEvent.__name__, 550 FileAttachedEvent.__name__,
544 ] 551 ]
545 jabber_subscribed_events_default = [] 552 jabber_subscribed_events_default = []
546
547 search_results_per_page = 10
548
549 session_handler = session.DefaultSessionHandler()
550 session_id_handler = session.MoinCookieSessionIDHandler()
551
552 sitename = u'Untitled Wiki' # Wiki identity
553 553
554 superuser = [] # list of unicode user names that have super powers :) 554 superuser = [] # list of unicode user names that have super powers :)
555 555
556 supplementation_page = False # use supplementation pages (show a link in the theme)? 556 supplementation_page = False # use supplementation pages (show a link in the theme)?
557 supplementation_page_name = u'Discussion' # name of suppl. subpage 557 supplementation_page_name = u'Discussion' # name of suppl. subpage
582 traceback_log_dir = None # if set to a directory path, tracebacks are written to files there 582 traceback_log_dir = None # if set to a directory path, tracebacks are written to files there
583 583
584 trail_size = 5 # number of recently visited pagenames shown in the trail display 584 trail_size = 5 # number of recently visited pagenames shown in the trail display
585 tz_offset = 0.0 # default time zone offset in hours from UTC 585 tz_offset = 0.0 # default time zone offset in hours from UTC
586 586
587 user_autocreate = False # do we auto-create user profiles
588 user_email_unique = True # do we check whether a user's email is unique?
589 user_jid_unique = True # do we check whether a user's email is unique?
590
591 # a regex of HTTP_USER_AGENTS that should be excluded from logging 587 # a regex of HTTP_USER_AGENTS that should be excluded from logging
592 # and receive a FORBIDDEN for anything except viewing a page 588 # and receive a FORBIDDEN for anything except viewing a page
593 # list must not contain 'java' because of twikidraw wanting to save drawing uses this useragent 589 # list must not contain 'java' because of twikidraw wanting to save drawing uses this useragent
594 ua_spiders = ('archiver|cfetch|charlotte|crawler|curl|gigabot|googlebot|heritrix|holmes|htdig|httrack|httpunit|' 590 ua_spiders = ('archiver|cfetch|charlotte|crawler|curl|gigabot|googlebot|heritrix|holmes|htdig|httrack|httpunit|'
595 'intelix|jeeves|larbin|leech|libwww-perl|linkbot|linkmap|linkwalk|litefinder|mercator|' 591 'intelix|jeeves|larbin|leech|libwww-perl|linkbot|linkmap|linkwalk|litefinder|mercator|'
596 'microsoft.url.control|mirror| mj12bot|msnbot|msrbot|neomo|nutbot|omniexplorer|puf|robot|scooter|seekbot|' 592 'microsoft.url.control|mirror| mj12bot|msnbot|msrbot|neomo|nutbot|omniexplorer|puf|robot|scooter|seekbot|'
597 'sherlock|slurp|sitecheck|snoopy|spider|teleport|twiceler|voilabot|voyager|webreaper|wget|yeti') 593 'sherlock|slurp|sitecheck|snoopy|spider|teleport|twiceler|voilabot|voyager|webreaper|wget|yeti')
594
595 unzip_single_file_size = 2.0 * 1000 ** 2
596 unzip_attachments_space = 200.0 * 1000 ** 2
597 unzip_attachments_count = 101 # 1 zip file + 100 files contained in it
598
599 url_mappings = {}
598 600
599 # url_prefix is DEPRECATED and not used any more by the code. 601 # url_prefix is DEPRECATED and not used any more by the code.
600 # it confused many people by its name and default value of '/wiki' to the 602 # it confused many people by its name and default value of '/wiki' to the
601 # wrong conclusion that it is the url of the wiki (the dynamic) stuff, 603 # wrong conclusion that it is the url of the wiki (the dynamic) stuff,
602 # but it was used to address the static stuff (images, css, js). 604 # but it was used to address the static stuff (images, css, js).
614 616
615 # we could prefix actions to be able to exclude them by robots.txt: 617 # we could prefix actions to be able to exclude them by robots.txt:
616 #url_prefix_action = 'action' # no leading or trailing '/' 618 #url_prefix_action = 'action' # no leading or trailing '/'
617 url_prefix_action = None # compatiblity 619 url_prefix_action = None # compatiblity
618 620
619 url_mappings = {}
620
621 # allow disabling certain userpreferences plugins 621 # allow disabling certain userpreferences plugins
622 userprefs_disabled = [] 622 userprefs_disabled = []
623
624 user_autocreate = False # do we auto-create user profiles
625 user_email_unique = True # do we check whether a user's email is unique?
626 user_jid_unique = True # do we check whether a user's email is unique?
627
628 user_homewiki = 'Self' # interwiki name for where user homepages are located
623 629
624 user_checkbox_fields = [ 630 user_checkbox_fields = [
625 ('mailto_author', lambda _: _('Publish my email (not my wiki homepage) in author info')), 631 ('mailto_author', lambda _: _('Publish my email (not my wiki homepage) in author info')),
626 ('edit_on_doubleclick', lambda _: _('Open editor on double click')), 632 ('edit_on_doubleclick', lambda _: _('Open editor on double click')),
627 ('remember_last_visit', lambda _: _('After login, jump to last visited page')), 633 ('remember_last_visit', lambda _: _('After login, jump to last visited page')),
690 #user_form_remove = ['password', 'password2', 'css_url', 'logout', 'create', 'account_sendmail',] 696 #user_form_remove = ['password', 'password2', 'css_url', 'logout', 'create', 'account_sendmail',]
691 user_form_remove = [] 697 user_form_remove = []
692 698
693 # attributes we do NOT save to the userpref file 699 # attributes we do NOT save to the userpref file
694 user_transient_fields = ['id', 'valid', 'may', 'auth_username', 'password', 'password2', 'auth_method', 'auth_attribs', ] 700 user_transient_fields = ['id', 'valid', 'may', 'auth_username', 'password', 'password2', 'auth_method', 'auth_attribs', ]
695
696 user_homewiki = 'Self' # interwiki name for where user homepages are located
697
698 unzip_single_file_size = 2.0 * 1000 ** 2
699 unzip_attachments_space = 200.0 * 1000 ** 2
700 unzip_attachments_count = 101 # 1 zip file + 100 files contained in it
701 701
702 xapian_search = False 702 xapian_search = False
703 xapian_index_dir = None 703 xapian_index_dir = None
704 xapian_stemming = False 704 xapian_stemming = False
705 xapian_index_history = False 705 xapian_index_history = False