Attachment 'mywiki-es.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 This is a sample config for a wiki that is part of a wiki farm and uses
  11 farmconfig for common stuff. Here we define what has to be different from
  12 the farm's common settings.
  13 """
  14 
  15 # we import the FarmConfig class for common defaults of our wikis:
  16 from farmconfig import FarmConfig
  17 
  18 # now we subclass that config (inherit from it) and change what's different:
  19 class Config(FarmConfig):
  20 
  21     # basic options (you normally need to change these)
  22     sitename = u'MyWiki' # [Unicode]
  23     interwikiname = u'MyWikiEs' # [Unicode]
  24     show_interwiki = 0
  25     logo_string = sitename
  26     shared_intermap = '/srv/mywiki/data-shared/intermap.txt'
  27 
  28     # name of entry page / front page [Unicode], choose one of those:
  29 
  30     # a) if most wiki content is in a single language
  31     #page_front_page = u"MyStartingPage"
  32 
  33     # b) if wiki content is maintained in many languages
  34     #page_front_page = u"FrontPage"
  35     page_front_page = u"MyFrontPage"
  36 
  37     data_dir = '/srv/mywiki/data-es/'
  38     data_underlay_dir = '/srv/mywiki/underlay/'
  39 
  40     # Share user informations:
  41     cache_dir = '/srv/mywiki/data-shared/cache/' # share sessions
  42     user_dir = '/srv/mywiki/data-shared/user/'
  43     #All homepages are stored on the English wiki
  44     user_homewiki = u'English'
  45     language_default = 'es'
  46     language_ignore_browser = True
  47 
  48     sistersites = [
  49         ('Francais', 'http://127.0.0.1/fr/?action=sisterpages'),
  50 	#('Espanol',  'http://127.0.0.1/es/?action=sisterpages'),
  51         ('English',  'http://127.0.0.1/en/?action=sisterpages')
  52     ] # list of (sistersitename, sisterpagelistfetchurl)

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] (2010-03-21 13:18:45, 34.3 KB) [[attachment:es.png]]
  • [get | view] (2010-03-21 12:30:29, 6.8 KB) [[attachment:farmconfig.py]]
  • [get | view] (2010-03-21 13:18:33, 29.2 KB) [[attachment:fr.png]]
  • [get | view] (2010-03-21 13:11:23, 2.0 KB) [[attachment:mywiki-en.py]]
  • [get | view] (2010-03-21 13:10:52, 2.0 KB) [[attachment:mywiki-es.py]]
  • [get | view] (2010-03-21 13:11:11, 2.0 KB) [[attachment:mywiki-fr.py]]
 All files | Selected Files: delete move to page copy to page

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