opental-checkins
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OpenTAL-checkins] opental/PlacelessTranslationService Negotiator.py


From: Fernando Lalo Martins
Subject: [OpenTAL-checkins] opental/PlacelessTranslationService Negotiator.py
Date: Mon, 06 Oct 2003 17:58:41 -0400

CVSROOT:        /cvsroot/opental
Module name:    opental
Branch:         
Changes by:     Fernando Lalo Martins <address@hidden>  03/10/06 17:58:41

Modified files:
        PlacelessTranslationService: Negotiator.py 

Log message:
        strip choices first of all

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/opental/opental/PlacelessTranslationService/Negotiator.py.diff?tr1=1.9&tr2=1.10&r1=text&r2=text

Patches:
Index: opental/PlacelessTranslationService/Negotiator.py
diff -u opental/PlacelessTranslationService/Negotiator.py:1.9 
opental/PlacelessTranslationService/Negotiator.py:1.10
--- opental/PlacelessTranslationService/Negotiator.py:1.9       Mon Oct  6 
17:29:31 2003
+++ opental/PlacelessTranslationService/Negotiator.py   Mon Oct  6 17:58:41 2003
@@ -17,7 +17,7 @@
 #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307, USA
 """
 
-$Id: Negotiator.py,v 1.9 2003/10/06 21:29:31 lalo Exp $
+$Id: Negotiator.py,v 1.10 2003/10/06 21:58:41 lalo Exp $
 """
 
 try:
@@ -71,8 +71,8 @@
             print_exc()
             return
         if user_accepts and http_accepts and user_accepts == 
request.cookies.get('custom_name'):
-            user_accepts = user_accepts.split(',')
-            http_accepts = http_accepts.split(',')
+            user_accepts = [a.strip() for a in user_accepts.split(',')]
+            http_accepts = [a.strip() for a in http_accepts.split(',')]
             for l in user_accepts:
                 if l not in http_accepts:
                     req_accepts = user_accepts + http_accepts




reply via email to

[Prev in Thread] Current Thread [Next in Thread]