changeset 4507:56f98df584e6

made cfg.user_homewiki a unicode object (str only worked for ascii)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 24 Jan 2009 05:30:34 +0100
parents ba8450d9fae3
children 83bdb8f78bce
files MoinMoin/config/multiconfig.py MoinMoin/wikiutil.py wiki/config/more_samples/user_wikiconfig_snippet
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/config/multiconfig.py	Mon Jan 12 09:59:36 2009 +0100
+++ b/MoinMoin/config/multiconfig.py	Sat Jan 24 05:30:34 2009 +0100
@@ -648,7 +648,7 @@
     user_email_unique = True # do we check whether a user's email is unique?
     user_jid_unique = True # do we check whether a user's email is unique?
 
-    user_homewiki = 'Self' # interwiki name for where user homepages are located
+    user_homewiki = u'Self' # interwiki name for where user homepages are located
 
     user_checkbox_fields = [
         ('mailto_author', lambda _: _('Publish my email (not my wiki homepage) in author info')),
@@ -981,7 +981,7 @@
 '''
 
         decode_names = (
-            'sitename', 'interwikiname', 'logo_string', 'navi_bar',
+            'sitename', 'interwikiname', 'user_homewiki', 'logo_string', 'navi_bar',
             'page_front_page', 'page_category_regex', 'page_dict_regex',
             'page_group_regex', 'page_template_regex', 'page_license_page',
             'page_local_spelling_words', 'acl_rights_default',
--- a/MoinMoin/wikiutil.py	Mon Jan 12 09:59:36 2009 +0100
+++ b/MoinMoin/wikiutil.py	Sat Jan 24 05:30:34 2009 +0100
@@ -836,7 +836,7 @@
 
     homewiki = request.cfg.user_homewiki
     if homewiki == request.cfg.interwikiname:
-        homewiki = 'Self'
+        homewiki = u'Self'
 
     return homewiki, username
 
--- a/wiki/config/more_samples/user_wikiconfig_snippet	Mon Jan 12 09:59:36 2009 +0100
+++ b/wiki/config/more_samples/user_wikiconfig_snippet	Sat Jan 24 05:30:34 2009 +0100
@@ -5,7 +5,7 @@
 
     #user_autocreate = False # auto-create user profiles? needs support in auth method!
 
-    #user_homewiki = 'Self' # interwiki name for where user homepages are located
+    #user_homewiki = u'Self' # interwiki name for where user homepages are located
 
     #password_checker = None
     #user_email_unique = True # do we check whether a user's email is unique?