Description
Steps to reproduce
- I filled in the registration form and hit "Create account" or whatever it's called, and I got
the error message User instance has no attribute 'css url'
I need your wikiconfig.py or farmconfig.py. Please remove security related stuff and attach the rest here: wikiconfig.py
Hi, i have the same problem on this page http://cartan.cas.suffolk.edu/moin/OopDocbook
If i log in i get this error. I tried Firefox and Internet Explorer.
System Details
Date: Fri, 28 Apr 2006 10:51:09 +0000
Platform: Linux cartan.cas.suffolk.edu 2.4.22-36mdkenterprise #1 SMP Sat Jul 3 14:44:10 MDT 2004 i686
Python: Python 2.3 (/usr/bin/python) MoinMoin
MoinMoin: Release 1.5.2 (release)
Workaround
Do not remove css_url from user_form_fields.
Patch
--- a/MoinMoin/user.py Fri Jun 02 19:18:15 2006 +0200 +++ b/MoinMoin/user.py Fri Jun 02 20:17:05 2006 +0200 @@ -223,11 +223,8 @@ class User: self.auth_attribs = kw.get('auth_attribs', ()) # create some vars automatically - for tuple in self._cfg.user_form_fields: - key = tuple[0] - default = self._cfg.user_form_defaults.get(key, '') - setattr(self, key, default) - + self.__dict__.update(self._cfg.user_form_defaults) + if name: self.name = name elif auth_username: # this is needed for user_autocreate
Please test the patch and report results back here.
From AlanEzust: The patch is installed and I am testing it now. So far, so good. Thanks!