Attachment 'wikiconfig2.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 single wiki
  11 
  12     If you run a single wiki only, you can omit the farmconfig.py config
  13     file and just use wikiconfig.py - it will be used for every request
  14     we get in that case.
  15 
  16     Note that there are more config options than you'll find in
  17     the version of this file that is installed by default; see
  18     the module MoinMoin.multiconfig for a full list of names and their
  19     default values.
  20 
  21     Also, the URL http://moinmoin.wikiwikiweb.de/HelpOnConfiguration has
  22     a list of config options.
  23 
  24     @copyright: 2000-2004 by Juergen Hermann <jh@web.de>
  25     @license: GNU GPL, see COPYING for details.
  26 """
  27 
  28 from MoinMoin.multiconfig import DefaultConfig
  29 
  30 
  31 class Config(DefaultConfig):
  32 
  33     # Wiki identity ----------------------------------------------------
  34 
  35     # Site name, used by default for wiki name-logo [Unicode]
  36     sitename = u'OopDocbookWiki'
  37     oopdocbook = "/home/sae/public_html/oopdocbook"
  38 
  39     # Wiki logo. You can use an image, text or both. [Unicode]
  40     # Example: u'<img src="/wiki/mywiki.png" alt="My Wiki">My Wiki'
  41     # For no logo or text, use ''
  42     logo_string = sitename
  43 
  44     # The interwiki name used in interwiki links
  45     interwikiname = 'OopDocbookWiki'
  46 
  47 
  48     # Critical setup  ---------------------------------------------------
  49 
  50     # Misconfiguration here will render your wiki unusable. Check that
  51     # all directories are accessible by the web server or moin server.
  52 
  53     # If you encounter problems, try to set data_dir and data_underlay_dir
  54     # to absolute paths.
  55 
  56     # Where your mutable wiki pages are. You want to make regular
  57     # backups of this directory.
  58     data_dir = '/home/sae/moindata15/data'
  59 
  60     # Where read-only system and help page are. You might want to share
  61     # this directory between several wikis. When you update MoinMoin,
  62     # you can safely replace the underlay directory with a new one. This
  63     # directory is part of MoinMoin distribution, you don't have to
  64     # backup it.
  65     data_underlay_dir = '/home/sae/moin/moin-1.5.2/wiki/underlay/'
  66 
  67     # This must be '/wiki' for twisted and standalone. For CGI, it should
  68     # match your Apache Alias setting.
  69     url_prefix = '/wiki'
  70     
  71 
  72     # Security ----------------------------------------------------------
  73 
  74     # Security critical actions (disabled by default)
  75     # Uncomment to enable options you like.
  76     #allowed_actions = ['DeletePage', 'AttachFile', 'RenamePage']
  77     
  78     # Enable acl (0 to disable)
  79     acl_enabled = 1    
  80 
  81     # IMPORTANT: grant yourself admin rights! replace YourName with
  82     # your user name. See HelpOnAccessControlLists for more help.
  83     # All acl_right_xxx must use unicode [Unicode]
  84     acl_rights_before = u"XXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
  85     acl_rights_default = "Trusted:read,write,delete,revert \
  86         Known:read \
  87         All:read"
  88     
  89     # Link spam protection for public wikis (Uncomment to enable)
  90     # Needs a reliable internet connection.
  91     from MoinMoin.util.antispam import SecurityPolicy
  92 
  93 
  94     # Mail --------------------------------------------------------------
  95     
  96     # Configure to enable subscribing to pages (disabled by default)
  97 
  98     # SMTP server, e.g. "mail.provider.com" (empty or None to disable mail)
  99     mail_smarthost = "cartan.cas.suffolk.edu"
 100 
 101     # The return address, e.g "My Wiki <noreply@mywiki.org>"
 102     mail_from = "wiki@cartan.cas.suffolk.edu"
 103 
 104     # "user pwd" if you need to use SMTP AUTH
 105     mail_login = ""
 106 
 107 
 108     # User interface ----------------------------------------------------
 109     
 110     # Add your wikis important pages at the end. It is not recommended to
 111     # remove the default links.  Leave room for user links - don't use
 112     # more than 6 short items.
 113     # You MUST use Unicode strings here, but you need not use localized
 114     # page names for system and help pages, those will be used automatically
 115     # according to the user selected language. [Unicode]
 116     page_front_page = u'OopDocbookWiki'
 117 
 118     navi_bar = [
 119         # Will use page_front_page, (default FrontPage)
 120         u'OopDocbook',
 121         u'SlackersDocbook',
 122         u'BookMarks',
 123 #        u'%(page_front_page)s',
 124         u'RecentChanges',
 125         u'FindPage',
 126 #        u'InterWiki',
 127         u'HelpContents',
 128     ]
 129 
 130     # The default theme anonymous or new users get
 131     theme_default = 'oopdocbook'
 132     
 133 
 134     # Language options --------------------------------------------------
 135 
 136     # See http://moinmoin.wikiwikiweb.de/ConfigMarket for configuration in 
 137     # YOUR language that other people contributed.
 138 
 139     # The main wiki language, set the direction of the wiki pages
 140     default_lang = 'en'
 141 
 142     # You must use Unicode strings here [Unicode]
 143     page_category_regex = u'^Category[A-Z]'
 144     page_dict_regex = u'[a-z]Dict$'
 145     page_form_regex = u'[a-z]Form$'
 146     page_group_regex = u'[a-z]Group$'
 147     page_template_regex = u'[a-z]Template$'
 148 
 149     user_form_fields = [ ('name', ('User Name'), "text", "36", ("(FirstnameLastname)")), \
 150 						 ('aliasname', ('Alias-Name'), "text", "36", ''), \
 151 						 ('password', ('Password'), "password", "36", '(click "Login" now if you are already registered)'), \
 152 						 ('password2', ('Password repeat'), "password", "36", ('(Create Profile or Change password only)')), \
 153 						 ('email', ('Email'), "text", "36", '(Create Profile only)')]
 154 
 155 				
 156 
 157     # Content options ---------------------------------------------------
 158 
 159     # Show users hostnames in RecentChanges
 160     show_hosts = 1                  
 161 
 162     # Enumerate headlines?
 163     show_section_numbers = 0
 164 
 165     # Charts size, require gdchart (Set to None to disable).
 166     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.
  • [get | view] (2006-05-07 09:30:03, 12.3 KB) [[attachment:backtrace.html]]
  • [get | view] (2006-06-02 15:04:03, 6.0 KB) [[attachment:wikiconfig2.py]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.