Changeset 25:e467ff96b011 in ralphm-patches


Ignore:
Timestamp:
Jan 1, 2010, 1:31:17 AM (11 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Message:

Remove superfluous conversion to unicode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pubsub-forms.patch

    r24 r25  
    1 diff -r 7ec54fd678fc wokkel/data_form.py
    2 --- a/wokkel/data_form.py       Fri Jan 01 01:21:56 2010 +0100
    3 +++ b/wokkel/data_form.py       Fri Jan 01 01:22:24 2010 +0100
     1diff -r bf2fb205fe5a wokkel/data_form.py
     2--- a/wokkel/data_form.py       Fri Jan 01 01:28:11 2010 +0100
     3+++ b/wokkel/data_form.py       Fri Jan 01 01:29:23 2010 +0100
    44@@ -76,6 +76,7 @@
    55             option['label'] = self.label
     
    2727         """
    2828         Return the DOM representation of this Field.
    29 @@ -256,7 +258,7 @@
    30              else:
    31                  value = unicode(value)
    32  
    33 -            field.addElement('value', content=value)
    34 +            field.addElement('value', content=unicode(value))
    35  
    36          if asForm:
    37              if self.fieldType in ('list-single', 'list-multi'):
    3829@@ -322,16 +324,16 @@
    3930 
     
    189180+        for field in filtered:
    190181+            self.removeField(field)
    191 diff -r 7ec54fd678fc wokkel/pubsub.py
    192 --- a/wokkel/pubsub.py  Fri Jan 01 01:21:56 2010 +0100
    193 +++ b/wokkel/pubsub.py  Fri Jan 01 01:22:24 2010 +0100
     182diff -r bf2fb205fe5a wokkel/pubsub.py
     183--- a/wokkel/pubsub.py  Fri Jan 01 01:28:11 2010 +0100
     184+++ b/wokkel/pubsub.py  Fri Jan 01 01:29:23 2010 +0100
    194185@@ -1012,29 +1012,11 @@
    195186             return None
     
    225216 
    226217 
    227 diff -r 7ec54fd678fc wokkel/test/test_data_form.py
    228 --- a/wokkel/test/test_data_form.py     Fri Jan 01 01:21:56 2010 +0100
    229 +++ b/wokkel/test/test_data_form.py     Fri Jan 01 01:22:24 2010 +0100
     218diff -r bf2fb205fe5a wokkel/test/test_data_form.py
     219--- a/wokkel/test/test_data_form.py     Fri Jan 01 01:28:11 2010 +0100
     220+++ b/wokkel/test/test_data_form.py     Fri Jan 01 01:29:23 2010 +0100
    230221@@ -782,6 +782,45 @@
    231222         self.assertRaises(data_form.Error, form.addField, field2)
Note: See TracChangeset for help on using the changeset viewer.