Attachment 'config.patch'

Download

   1  * Setup the data directories in multiconfig.
   2 --- moin--main--1.5/MoinMoin/multiconfig.py	2005-12-30 22:08:40.052681600 +0100
   3 +++ moin--local-branch--AlexanderSchremmer/MoinMoin/multiconfig.py	2005-12-30 22:49:22.544812800 +0100
   4 @@ -306,7 +306,7 @@
   5      # a regex of HTTP_USER_AGENTS that should be excluded from logging
   6      # and receive a FORBIDDEN for anything except viewing a page
   7      ua_spiders = ('archiver|cfetch|crawler|curl|gigabot|google|holmes|htdig|httrack|httpunit|jeeves|larbin|leech|'
   8 -                  'linkbot|linkmap|linkwalk|mercator|mirror|msnbot|nutbot|omniexplorer|puf|robot|scooter|'
   9 +                  'linkbot|linkmap|linkwalk|mercator|mirror|msnbot|nutbot|puf|robot|scooter|'
  10                    'search|sherlock|sitecheck|spider|teleport|wget')
  11  
  12      # Wiki identity
  13 @@ -401,6 +401,18 @@
  14      xmlrpc_putpage_trusted_only = 1 # if 1, you will need to be http auth authenticated
  15      
  16      SecurityPolicy = None
  17 +    
  18 +    # MMDE specific options
  19 +    moinpath = os.path.abspath(os.path.normpath(os.path.dirname(sys.argv[0])))
  20 +    data_dir = os.path.join(moinpath, 'wiki', 'data')
  21 +    data_underlay_dir = os.path.join(moinpath, 'wiki', 'underlay')
  22 +    page_credits = [
  23 +        '<a href="http://moinmoin.wikiwikiweb.de/">MoinMoin DesktopEdition Powered</a>',
  24 +        '<a href="http://www.python.org/">Python Powered</a>',
  25 +    ]
  26 +    sitename = u'MoinMoin DesktopEdition'
  27 +    page_front_page = u'FrontPage'
  28 +    logo_string = u'<img src="/wiki/common/moinmoin.png" alt="MoinMoin Logo">'
  29  
  30      def __init__(self, siteid):
  31          """ Init Config instance """
  32 @@ -409,7 +421,7 @@
  33              self._config_check()
  34  
  35          # define directories
  36 -        self.moinmoin_dir = os.path.abspath(os.path.dirname(__file__))
  37 +        self.moinmoin_dir = self.moinpath
  38          data_dir = os.path.normpath(self.data_dir)
  39          self.data_dir = data_dir
  40          for dirname in ('user', 'cache', 'plugin'):

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] (2005-12-30 22:58:42, 1.5 KB) [[attachment:attachfile.patch]]
  • [get | view] (2005-12-30 22:58:48, 1.9 KB) [[attachment:config.patch]]
  • [get | view] (2005-12-30 22:58:06, 1.4 KB) [[attachment:moin.py]]
  • [get | view] (2005-12-30 22:57:45, 4.9 KB) [[attachment:package_desktop.cmd]]
  • [get | view] (2005-12-30 22:58:23, 2.9 KB) [[attachment:setup_py2exe.py]]
  • [get | view] (2005-12-30 22:58:12, 0.2 KB) [[attachment:wikiconfig.py]]
 All files | Selected Files: delete move to page copy to page

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