changeset 876:1ceb6f3f2a2a storage-ng

maintaining one wikiconfig is enough for now
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 25 Sep 2011 19:53:25 +0200
parents f15c538959aa
children f3b7fe1f3579
files docs/examples/config/wikiconfig.py
diffstat 1 files changed, 2 insertions(+), 115 deletions(-) [+]
line wrap: on
line diff
--- a/docs/examples/config/wikiconfig.py	Sun Sep 25 19:49:53 2011 +0200
+++ b/docs/examples/config/wikiconfig.py	Sun Sep 25 19:53:25 2011 +0200
@@ -1,115 +1,2 @@
-# -*- coding: utf-8 -*-
-# IMPORTANT! This encoding (charset) setting MUST be correct and match the
-# the encoding your editor uses when you modify this file.
-# Otherwise non-ASCII chars will be wrong.
-
-"""
-    MoinMoin - Wiki Configuration
-
-    Note that there are more config options than you'll find in
-    the version of this file that is installed by default; see
-    the module MoinMoin.config.default for a full list of names and their
-    default values (but do not edit THAT module).
-
-    Also, the URL http://moinmo.in/HelpOnConfiguration has
-    a list of config options.
-"""
-
-import os
-
-from MoinMoin.config.default import DefaultConfig
-from MoinMoin.storage.backends import create_simple_mapping
-
-
-class Config(DefaultConfig):
-
-    # Critical setup  ---------------------------------------------------
-
-    # Directory containing THIS wikiconfig:
-    wikiconfig_dir = os.path.abspath(os.path.dirname(__file__))
-
-    # We assume that this config file is located in the instance directory, like:
-    # instance_dir/
-    #              wikiconfig.py
-    #              data/
-    # If that's not true, feel free to just set instance_dir to the real path
-    # where data/
-    #instance_dir = '/where/ever/your/instance/is'
-    instance_dir = wikiconfig_dir
-
-    # Where your own wiki pages are (make regular backups of this directory):
-    data_dir = os.path.join(instance_dir, 'data', '') # path with trailing /
-
-    # This provides a simple default setup for your storage backend configuration.
-    # 'fs:' indicates that you want to use the filesystem backend. You can also use
-    # 'hg:' instead to indicate that you want to use the mercurial backend.
-    # Alternatively you can set up the mapping yourself (see HelpOnStorageConfiguration).
-    #
-    # IMPORTANT: This is also the place to set up your own ACL settings if you don't want
-    #            to use the default (see HelpOnAccessControlLists).
-    namespace_mapping = create_simple_mapping('fs:' + data_dir)
-
-    # Wiki identity ----------------------------------------------------
-
-    # Site name, used by default for wiki name-logo [Unicode]
-    sitename = u'Untitled Wiki'
-
-    # name of entry page / front page [Unicode]
-    #item_root = u"Home"
-
-    # The interwiki name used in interwiki links (set it and never change!)
-    #interwikiname = u'UntitledWiki'
-    # Show the interwiki name (and link it to item_root) in the Theme,
-    # nice for farm setups or when your logo does not show the wiki's name.
-    #show_interwiki = 1
-
-
-    # Security ----------------------------------------------------------
-
-    # The default (ENABLED) password_checker will keep users from choosing too
-    # short or too easy passwords. If you don't like this and your site has
-    # rather low security requirements, feel free to DISABLE the checker by:
-    #password_checker = None # None means "don't do any password strength checks"
-
-
-    # Mail --------------------------------------------------------------
-
-    # Configure mail to enable subscribing to pages or password recovery.
-
-    # SMTP server, e.g. "mail.provider.com" (None to disable mail)
-    #mail_smarthost = ""
-
-    # The return address, e.g u"Jürgen Wiki <noreply@mywiki.org>" [Unicode]
-    #mail_from = u""
-
-    # "user pwd" if you need to use SMTP AUTH
-    #mail_login = ""
-
-
-    # User interface ----------------------------------------------------
-
-    # The default theme anonymous or new users get
-    theme_default = u'modernized'
-
-
-    # Language options --------------------------------------------------
-
-    # See http://moinmo.in/ConfigMarket for configuration in
-    # YOUR language that other people contributed.
-
-    # The main wiki language, set the direction of the wiki pages
-    language_default = 'en'
-
-    # the following regexes should match the complete name when used in free text
-    # the group 'all' shall match all, while the group 'key' shall match the key only
-    # e.g. FooGroup -> 'all' ==  FooGroup, 'key' == Foo
-    # moin's code will add ^ / $ at beginning / end when needed
-    # You must use Unicode strings here [Unicode]
-    item_dict_regex = ur'(?P<all>(?P<key>\S+)Dict)'
-    item_group_regex = ur'(?P<all>(?P<key>\S+)Group)'
-
-    # Content options ---------------------------------------------------
-
-    # Show users hostnames in RecentChanges
-    show_hosts = 1
-
+# for now, see the wikiconfig.py in the toplevel directory.
+# TODO: put a tested wiki config in here when stuff has stabilized