wiki/. wikiconfig.py
Dimi Paun
dimi at users.sourceforge.net
Thu Oct 11 11:34:15 CDT 2007
ChangeSet ID: 1192120455416564580126764
CVSROOT: /cvsroot/wine
Module name: wiki
Changes by: dimi at sc8-pr-cvs9.sourceforge.net 2007/10/11 09:34:15
Modified files:
. : wikiconfig.py
Log message:
Update to production values.
Old revision New revision Changes Path
1.6 1.7 +54 -38 wiki/wikiconfig.py
Index: wiki/wikiconfig.py
diff -u -p wiki/wikiconfig.py:1.6 wiki/wikiconfig.py:1.7
--- wiki/wikiconfig.py 11 Oct 2007 16:34:15 -0000
+++ /dev/null 11 Oct 2007 16:34:15 -0000
@@ -21,8 +21,8 @@
Also, the URL http://moinmoin.wikiwikiweb.de/HelpOnConfiguration has
a list of config options.
- @copyright: 2000-2005 by Juergen Hermann <jh at web.de>
- @license: GNU GPL, see COPYING for details.
+ ** Please do not use this file for a wiki farm. Use the sample file
+ from the wikifarm directory instead! **
"""
from MoinMoin.multiconfig import DefaultConfig
@@ -36,12 +36,23 @@ class Config(DefaultConfig):
sitename = u'The Official Wine Wiki'
# Wiki logo. You can use an image, text or both. [Unicode]
- # Example: u'<img src="/wiki/mywiki.png" alt="My Wiki">My Wiki'
- # For no logo or text, use ''
- logo_string = '<img src="/logo.png" width="230" height="99" border="0" alt="Wine Wiki" />'
+ # For no logo or text, use '' - the default is to show the sitename.
+ # See also url_prefix setting below!
+ logo_string = u'<img src="logo.png" width="230" height="99" border="0" alt="Wine Wiki">'
+
+ # name of entry page / front page [Unicode], choose one of those:
+
+ # a) if most wiki content is in a single language
+ #page_front_page = u"MyStartingPage"
+
+ # b) if wiki content is maintained in many languages
+ page_front_page = u"FrontPage"
# The interwiki name used in interwiki links
interwikiname = 'WineWiki'
+ # Show the interwiki name (and link it to page_front_page) in the Theme,
+ # nice for farm setups or when your logo does not show the wiki's name.
+ #show_interwiki = 1
# Critical setup ---------------------------------------------------
@@ -63,25 +74,26 @@ class Config(DefaultConfig):
# backup it.
data_underlay_dir = '/var/www/wine/wiki/underlay/'
- # This must be '/wiki' for twisted and standalone. For CGI, it should
- # match your Apache Alias setting.
+ # Location of your STATIC files (css/png/js/...) - you must NOT use the
+ # same for invoking moin.cgi (or, in general, the moin code).
+ # url_prefix must be '/wiki' for Twisted and standalone servers.
+ # For CGI, it should match your Apache Alias setting.
+ # url_prefix = '/moin'
url_prefix = '/wiki'
-
+
# Security ----------------------------------------------------------
- # Security critical actions (disabled by default)
- # Uncomment to enable options you like.
- allowed_actions = ['DeletePage', 'AttachFile', 'RenamePage']
-
- # Enable acl (0 to disable)
- acl_enabled = 1
+ # This is checked by some rather critical and potentially harmful actions,
+ # like despam or PackageInstaller action:
+ superuser = [u"DimiPaun", ]
# IMPORTANT: grant yourself admin rights! replace YourName with
# your user name. See HelpOnAccessControlLists for more help.
- # All acl_right_xxx must use unicode [Unicode]
+ # All acl_rights_xxx options must use unicode [Unicode]
+ #acl_rights_before = u"YourName:read,write,delete,revert,admin"
acl_rights_before = u"DimiPaun:read,write,delete,revert,admin"
- acl_rights_default = 'Known:read,write,revert All:read'
+ acl_rights_default = u"Trusted:read,write,delete,revert Known:read,write,delete,revert All:read"
# Link spam protection for public wikis (Uncomment to enable)
# Needs a reliable internet connection.
@@ -89,25 +101,22 @@ class Config(DefaultConfig):
# Mail --------------------------------------------------------------
-
+
# Configure to enable subscribing to pages (disabled by default)
# or sending forgotten passwords.
- # SMTP server, e.g. "mail.provider.com" (empty or None to disable mail)
+ # SMTP server, e.g. "mail.provider.com" (None to disable mail)
mail_smarthost = "mail.lattica.com"
- # The return address, e.g "My Wiki <noreply at mywiki.org>"
- mail_from = "Wine Wiki <wine-wiki at lattica.com>"
+ # The return address, e.g u"Jürgen Wiki <noreply at mywiki.org>" [Unicode]
+ mail_from = u"Wine Wiki <wine-wiki at lattica.com>"
# "user pwd" if you need to use SMTP AUTH
- mail_login = ""
+ #mail_login = ""
# User interface ----------------------------------------------------
- # Name of the FrontPage
- # page_front_page = u'[WineWiki Wine Wiki]'
-
# Add your wikis important pages at the end. It is not recommended to
# remove the default links. Leave room for user links - don't use
# more than 6 short items.
@@ -115,16 +124,16 @@ class Config(DefaultConfig):
# page names for system and help pages, those will be used automatically
# according to the user selected language. [Unicode]
navi_bar = [
- # Will use page_front_page, (default FrontPage)
+ # If you want to show your page_front_page here:
u'%(page_front_page)s',
- u'[RecentChanges Recent Changes]',
- u'[FindPage Search Wiki]',
- u'[HelpContents Help Contents]',
+ u'RecentChanges',
+ u'FindPage',
+ u'HelpContents',
]
# The default theme anonymous or new users get
theme_default = 'winehq'
-
+
# Language options --------------------------------------------------
@@ -132,7 +141,7 @@ class Config(DefaultConfig):
# YOUR language that other people contributed.
# The main wiki language, set the direction of the wiki pages
- default_lang = 'en'
+ language_default = 'en'
# You must use Unicode strings here [Unicode]
page_category_regex = u'^Category[A-Z]'
@@ -143,17 +152,11 @@ class Config(DefaultConfig):
# Content options ---------------------------------------------------
- # Allow normal links to be followed (for now at least)
- html_head_normal = '''<meta name="robots" content="index,follow">\n'''
-
# Show users hostnames in RecentChanges
show_hosts = 1
- # Enumerate headlines?
- show_section_numbers = 0
-
- # Charts size, require gdchart (Set to None to disable).
- chart_options = {'width': 600, 'height': 300}
+ # Enable graphical charts, requires gdchart.
+ chart_options = {'width': 600, 'height': 300}
# True to enable !NoWikiName markup
bang_meta = 1
@@ -165,3 +168,16 @@ class Config(DefaultConfig):
page_credits = [
'Sponsored by <a href="http://lattica.com/"><i>Lattica</i></a><br /><a href="http://moinmoin.wikiwikiweb.de/">MoinMoin Powered</a>'
]
+
+# surge_action_limits = { # allow max. <count> <action> requests per <dt> secs
+ # action: (count, dt)
+# 'show': (200, 1),
+# 'raw': (200, 1), # some people use this for css
+# 'AttachFile': (60, 60),
+# 'diff': (30, 60),
+# 'fullsearch': (5, 60),
+# 'edit': (10, 120),
+# 'rss_rc': (1, 60),
+# 'default': (30, 60),
+# }
+ surge_lockout_time = 0 # secs you get locked out when you ignore warnings
More information about the wine-cvs
mailing list