[prev in list] [next in list] [prev in thread] [next in thread] 

List:       prelude-cvslog
Subject:    [prelude-cvslog] prewikka/master: Fix exception with CGI
From:       noreply () prelude-technologies ! com
Date:       2010-08-03 7:40:31
Message-ID: 20100803074031.153AA3C8019 () inferno ! prelude-technologies ! com
[Download RAW message or body]

commit f7f8b2f5e57bd9d5d543b6e8a9dd8f75acac3cb3
Author: Yoann Vandoorselaere <yoann.v@prelude-technologies.com>
Date:   Tue Aug 3 09:39:06 2010 +0200

    Fix exception with CGI authentication
    
    The toUnicode was not called correctly. Thanks Maksym Tiurin
    <mrkooll@gmail.com> for reporting this problem. Closes #381.


========================================

 prewikka/modules/auth/cgi/cgi.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

========================================

diff --git a/prewikka/modules/auth/cgi/cgi.py b/prewikka/modules/auth/cgi/cgi.py
index a1e12bb..78335ff 100644
--- a/prewikka/modules/auth/cgi/cgi.py
+++ b/prewikka/modules/auth/cgi/cgi.py
@@ -18,7 +18,7 @@
 # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
 
 import os
-from prewikka import Auth, User, Database
+from prewikka import Auth, User, Database, utils
 
 
 class CGIAuth(Auth.Auth):
@@ -40,7 +40,7 @@ class CGIAuth(Auth.Auth):
         if not user:
             raise Auth.AuthError(message=_("CGI Authentication failed: no user specified."))
 
-        user = user.toUnicode(user)
+        user = utils.toUnicode(user)
 
         # Create the user in the Prewikka database, so that its permission
         # might be modified by another administrative user.
_______________________________________________
Prelude-cvslog site list
Prelude-cvslog@prelude-technologies.com
http://lists.prelude-technologies.com/mailman/listinfo/prelude-cvslog
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic