[POS-commit] r1271 - kiwi/trunk/kiwi

Johan Dahlin jdahlin at async.com.br
Tue Sep 27 10:12:42 BRT 2005


Author: jdahlin
Date: Tue Sep 27 10:12:41 2005
New Revision: 1271

Modified:
   kiwi/trunk/kiwi/proxies.py
Log:
Added an type extra check, commented out for now

Modified: kiwi/trunk/kiwi/proxies.py
==============================================================================
--- kiwi/trunk/kiwi/proxies.py	(original)
+++ kiwi/trunk/kiwi/proxies.py	Tue Sep 27 10:12:41 2005
@@ -128,6 +128,17 @@
                                  "the widgets list)" 
                                  % (attribute, self, self._attr_map.keys()))
 
+        
+        data_type = widget.get_property('data-type')
+#         value_type = type(value)
+#         if not isinstance(value, data_type):
+#             raise TypeError(
+#                 "attribute %s of model %r requires a value of "
+#                 "type %s, not %s" % (
+#                 attribute, self.model,
+#                 data_type.__name__,
+#                 value_type.__name__))
+        
         if block:
             block_widget(widget)
             self.view.handler_block(widget)


More information about the POS-commit mailing list