Description

When trying to change the user preferences a key error happens: 'jid'. The problem happens after migrate form 1.6.2 to 1.7.1

Steps to reproduce

  1. Just click on user preferences link from user settings page (https://myserver/wiki/Inicio?action=userprefs&sub=prefs).

Example

Component selection

Details

traceback.html

MoinMoin Version

OS and Version

Python Version

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround

I had the exact same problem. I bet you imported your wikiconfig.py from 1.6.2? I did and my wikiconfig.py included:

    user_form_defaults = { # key: default
        'name': '',
        'aliasname': '',
        'password': '',
        'password2': '',
        'email': '',
        'css_url': '',
        'edit_rows': "20",
    }

I noticed in the default config file: /usr/lib/python2.4/site-packages/MoinMoin/config/multiconfig.py that the user_form_defaults option has been expanded. Updating the configuration to read:

    user_form_defaults = { # key: default
        'name': '',
        'aliasname': '',
        'password': '', 
        'password2': '',
        'email': '',
        'jid': '',  
        'css_url': '',
        'edit_rows': "20",
    }

solved the error, ie the jid key is now required in the defaults.

Discussion

I would not call this a bug anymore. There should be a reference to jid in the CHANGES

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/UserpreferencesKeyerrorJid (last edited 2008-08-19 06:26:01 by ReimarBauer)