[POS-commit] r6353 - in kiwi/trunk: . kiwi/ui

Johan Dahlin jdahlin at async.com.br
Tue Apr 10 09:28:33 BRT 2007


Author: jdahlin
Date: Tue Apr 10 09:28:33 2007
New Revision: 6353

Modified:
   kiwi/trunk/ChangeLog
   kiwi/trunk/kiwi/ui/proxywidget.py

Log:
    * kiwi/ui/proxywidget.py (ProxyWidgetMixin._as_string): Provide
    a default (string) converter if none is set.



Modified: kiwi/trunk/ChangeLog
==============================================================================
--- kiwi/trunk/ChangeLog	(original)
+++ kiwi/trunk/ChangeLog	Tue Apr 10 09:28:33 2007
@@ -1,3 +1,8 @@
+2007-04-10  Johan Dahlin  <jdahlin at async.com.br>
+
+	* kiwi/ui/proxywidget.py (ProxyWidgetMixin._as_string): Provide
+	a default (string) converter if none is set.
+
 2007-04-08  Johan Dahlin  <jdahlin at async.com.br>
 
 	* kiwi/ui/widgets/entry.py (ProxyEntry.__post_init__): Remove

Modified: kiwi/trunk/kiwi/ui/proxywidget.py
==============================================================================
--- kiwi/trunk/kiwi/ui/proxywidget.py	(original)
+++ kiwi/trunk/kiwi/ui/proxywidget.py	Tue Apr 10 09:28:33 2007
@@ -153,8 +153,7 @@
         """
         conv = self._converter
         if conv is None:
-            raise AssertionError(
-                "You need to set a data type before calling _as_string")
+            conv = converter.get_converter(str)
 
         return conv.as_string(data, format=self._data_format)
 
@@ -166,8 +165,7 @@
         """
         conv = self._converter
         if conv is None:
-            raise AssertionError(
-                "You need to set a data type before calling _from_string")
+            conv = converter.get_converter(str)
 
         return conv.from_string(data)
 


More information about the POS-commit mailing list