[Moin-user] upgrade to 1.7rc1 error

Rick Vanderveer rick.vanderveer at gmail.com
Fri May 23 16:41:59 EDT 2008


Thomas,
You're right, I am running a farm (using farmconfig.py, not
wikiconfig.py).  However, I've combed thru my farmconfig.py file very
thoroughly, and am not seeing any problems.  Does  "auth =
[HTTPAuth()]" need something within the parentheses?

Sorry to do this, but I'm pasting in my farmconfig.py file in hopes
that someone else may spot something I'm overlooking:

-Rick



# -*- coding: iso-8859-1 -*-
# IMPORTANT! This encoding (charset) setting MUST be correct! If you live in a
# western country and you don't know that you use utf-8, you probably want to
# use iso-8859-1 (or some other iso charset). If you use utf-8 (a Unicode
# encoding) you MUST use: coding: utf-8
# That setting must match the encoding your editor uses when you modify the
# settings below. If it does not, special non-ASCII chars will be wrong.



# Wikis in your farm --------------------------------------------------

# If you run multiple wikis, you need this list of pairs (wikiname, url
# regular expression). moin processes that list and tries to match the
# regular expression against the URL of this request - until it matches.
# Then it loads the <wikiname>.py config for handling that request.


wikis = [

    # wikiname,     url regular expression (no protocol)
    # ---------------------------------------------------------------
    # for multiple wikis, do something like this:
    ("main",  r"^.*.cognitivearts.com/main.*$"),
    ("projects",  r"^.*.cognitivearts.com/projects.*$"),
    ("services",  r"^.*.cognitivearts.com/services.*$"),
    ("generic",  r"^.*.cognitivearts.com/generic.*$"),
]


# Common configuration for all wikis ----------------------------------

# Everything that should be configured the same way should go here,
# anything else that should be different should go to the single wiki's
# config.
# In that single wiki's config, we will use the class FarmConfig we define
# below as the base config settings and only override what's different.
#
# In exactly the same way, we first include MoinMoin's Config Defaults here -
# this is to get everything to sane defaults, so we need to change only what
# we like to have different:

from MoinMoin.config.multiconfig import DefaultConfig

# Now we subclass this DefaultConfig. This means that we inherit every setting
# from the DefaultConfig, except those we explicitely define different.

class FarmConfig(DefaultConfig):

    # Critical setup  ---------------------------------------------------

    # Misconfiguration here will render your wiki unusable. Check that
    # all directories are accessible by the web server or moin server.

    # If you encounter problems, try to set data_dir and data_underlay_dir
    # to absolute paths.

    # Where read-only system and help page are. You might want to share
    # this directory between several wikis. When you update MoinMoin,
    # you can safely replace the underlay directory with a new one. This
    # directory is part of MoinMoin distribution, you don't have to
    # backup it.
    data_underlay_dir = r'c:\moin\underlay'

    # Moin 1.6 supports a common cache directory.  Yeah, no more
backing up of caches!
    cache_dir = r'c:\moin_cache'

    # 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 = '/wiki_static160'


    # Security ----------------------------------------------------------

    superuser = [u"Rvanderveer", ]
    acl_rights_before = u"Rvanderveer:read,write,delete,revert,admin"
    acl_rights_default = u"All:read,write,revert,delete"


    ## Rick: Windows Domain Authentication

    from MoinMoin.auth.http import HTTPAuth
    auth = [HTTPAuth()]

    user_autocreate = True

    # 'logout' link not necessary (or works) in Domain Authentication
    show_login = 0

    allowed_actions = ['AttachFile', ]



    # Mail --------------------------------------------------------------

    mail_smarthost = "smtp.xxxxxxxx.com"

    mail_from = u"CogArts Wiki Notifier <xxxxxxxx at xxxxxxxx.com>"

    mail_login = "XXXXXXXX xxxxxxxx"


    # User interface ----------------------------------------------------

    navi_bar = [
        # If you want to show your page_front_page here:
        u'%(page_front_page)s',
        u'RecentChanges',
        u'EditingFAQ',
    ]


    theme_default = 'modern'

    ### Rick:  modifying 'UserPreference' page

    user_checkbox_defaults = {
                             'show_page_trail': 0,
                             'mailto_author': 1,
                             }

    user_form_remove = ['password', 'password2', 'logout',
'account_sendmail', 'aliasname', 'css_url',]

    editor_default = 'text'
    editor_ui = 'theonepreferred'

    user_checkbox_remove = [ 'disabled', 'edit_on_doubleclick',
'show_topbottom', 'wikiname_add_spaces', ]

    edit_bar = ['Edit', 'Info', 'Subscribe', 'Quicklink',
'Attachments', 'ActionsMenu']


    ### Rick:  surge protection not nessessary on internal wiki
(causes problems with fast editors):
    surge_action_limits = None

    ### Rick: added for auto-populate email field (with http auth).
See http://moinmo.in/MoinMoinPatch/HttpAuthAutoEmail
    auth_http_save_email = True
    auth_http_email_suffix = '@niit.com'

    ### Rick: set to common user directory, so that each project wiki
doesn't create a separate user ID
    user_dir = 'c:\moin\users'
    user_homewiki = 'main'


    search_results_per_page = '25'


    # Language options --------------------------------------------------

    # See http://moinmoin.wikiwikiweb.de/ConfigMarket for configuration in
    # YOUR language that other people contributed.

    # The main wiki language, set the direction of the wiki pages
    language_default = 'en'

    # You must use Unicode strings here [Unicode]
    page_category_regex = u'^Category[A-Z]'
    page_dict_regex = u'[a-z]Dict$'
    page_group_regex = u'[a-z]Group$'
    page_template_regex = u'[a-z]Template$'

    # Content options ---------------------------------------------------

    # Show users hostnames in RecentChanges
    show_hosts = 1

    # 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.
    ### Rick: I changed from 1 to 0 to hide the wiki name
    show_interwiki = 0
    shared_intermap = 'c:\moin\intermap.txt'


    logo_string = u'<img src="/wiki/common/CogArts-logo.gif"
alt="Cognitive Arts">'


    mimetypes_xss_protect = [ ]

    mimetypes_embed = ['application/x-dvi', 'application/postscript',
'application/pdf', 'application/ogg', 'application/vnd.visio',
'image/x-ms-bmp', 'image/svg+xml', 'image/tiff', 'image/x-photoshop',
'audio/mpeg', 'audio/midi', 'audio/x-wav', 'video/fli', 'video/mpeg',
'video/quicktime', 'video/x-msvideo', 'video/x-ms-wmv',
'chemical/x-pdb', 'x-world/x-vrml',]


    #show_timings = 'true'
    #show_version = 'true'

    #supplementation_page = 'True'
    #supplementation_page_name = u'Discuss'
    #supplementation_page_template = u'DiscussionTemplate'




On Fri, May 23, 2008 at 1:43 PM, Thomas Waldmann <tw-public at gmx.de> wrote:
>
>> ImportError: No module named wikiconfig
>
> This happens (except in the obvious case), if you have a farm
> configuration and some import in your farmconfig fails (moin then thinks
> that there is no farm config, because it gets an ImportError and falls
> back to wanting a wikiconfig).
>
> That problem has been there since long and has been fixed after
> 1.7.0rc1.
>
> So just fix your imports within your farmconfig (maybe auth stuff,
> antispam, ...).
>
>
>




More information about the Moin-user mailing list