Commits

Anonymous committed 13f256c

sample configuration file

Comments (0)

Files changed (2)

wikiconfig.py

-# -*- coding: iso-8859-1 -*-
-"""MoinMoin Desktop Edition (MMDE) - Configuration
-
-ONLY to be used for MMDE - if you run a personal wiki on your notebook or PC.
-
-This is NOT intended for internet or server or multiuser use due to relaxed security settings!
-"""
-
-import sys, os
-
-from MoinMoin.config import multiconfig, url_prefix_static
-
-
-class LocalConfig(multiconfig.DefaultConfig):
-    # vvv DON'T TOUCH THIS EXCEPT IF YOU KNOW WHAT YOU DO vvv
-    # Directory containing THIS wikiconfig:
-    wikiconfig_dir = os.path.abspath(os.path.dirname(__file__))
-
-    # We assume this structure for a simple "unpack and run" scenario:
-    # wikiconfig.py
-    # wiki/
-    #      data/
-    #      underlay/
-    # If that's not true, feel free to just set instance_dir to the real path
-    # where data/ and underlay/ is located:
-    #instance_dir = '/where/ever/your/instance/is'
-    instance_dir = os.path.join(wikiconfig_dir, 'wiki')
-
-    # Where your own wiki pages are (make regular backups of this directory):
-    data_dir = os.path.join(instance_dir, 'data', '') # path with trailing /
-
-    # Where system and help pages are (you may exclude this from backup):
-    data_underlay_dir = os.path.join(instance_dir, 'underlay', '') # path with trailing /
-
-    DesktopEdition = True # give all local users full powers
-    acl_rights_default = u"All:read,write,delete,revert,admin"
-    surge_action_limits = None # no surge protection
-    sitename = u'MoinMoin DesktopEdition'
-    logo_string = u'<img src="%s/common/moinmoin.png" alt="MoinMoin Logo">' % url_prefix_static
-    # ^^^ DON'T TOUCH THIS EXCEPT IF YOU KNOW WHAT YOU DO ^^^
-
-    #page_front_page = u'FrontPage' # change to some better value
-
-    # Add your configuration items here.
-    secrets = 'This string is NOT a secret, please make up your own, long, random secret string!'
-
-# DEVELOPERS! Do not add your configuration items there,
-# you could accidentally commit them! Instead, create a
-# wikiconfig_local.py file containing this:
-#
-# from wikiconfig import LocalConfig
-#
-# class Config(LocalConfig):
-#     configuration_item_1 = 'value1'
-#
-
-try:
-    from wikiconfig_local import Config
-except ImportError, err:
-    if not str(err).endswith('wikiconfig_local'):
-        raise
-    Config = LocalConfig
-

wikiconfig_sample.py

 
     # This is checked by some rather critical and potentially harmful actions,
     # like despam or PackageInstaller action:
-    superuser = [u"HappyTk", ]
+    superuser = [u"", ]
 
     # IMPORTANT: grant yourself admin rights! replace YourName with
     # your user name. See HelpOnAccessControlLists for more help.
     # All acl_rights_xxx options must use unicode [Unicode]
-    acl_rights_before = u"HappyTk:read,write,delete,revert,admin"
+    acl_rights_before = u""
 
     # 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
     # according to the user selected language. [Unicode]
     navi_bar = [
         # If you want to show your page_front_page here:
-        # u'%(page_front_page)s',
+        u'%(page_front_page)s',
         u'RecentChanges',
-        # u'FindPage',
-        # u'HelpContents',
+        u'FindPage',
+        u'HelpContents',
     ]
 
     # The default theme anonymous or new users get
 
     attachment_charset = 'euc-kr'
 
-    page_header1 = """<script type="text/javascript" src="/moin_static195/common/js/moin.js"></script>
-<!--[if lte IE 8]><script type="text/javascript" src="/moin_static195/common/js/r2d3.min.js"></script><![endif]-->
-<!--[if gte IE 9]><!-->
-<script type="text/javascript" src="/moin_static195/common/js/d3.min.js"></script>
-<!--<![endif]-->
-<script language="javascript" type="Text/javascript" src="/moin_static195/common/js/jquery-1.8.2.min.js"></script>
-<script language="javascript" type="Text/javascript" src="/moin_static195/common/js/pickadate.js"></script>
-<link rel="stylesheet" type="text/css" charset="utf-8" href="/moin_static195/common/js/pickadate.01.default.css">
-<script type="text/javascript" src="/moin_static195/common/js/sqlrun.js"></script>
-"""
-
     surge_action_limits = None
     edit_ticketing = False