[Checkins] SVN: z3c.extfile/trunk/src/z3c/extfile/property.py handle None values

Bernd Dorn bernd.dorn at fhv.at
Mon Aug 14 08:33:44 EDT 2006


Log message for revision 69464:
  handle None values

Changed:
  U   z3c.extfile/trunk/src/z3c/extfile/property.py

-=-
Modified: z3c.extfile/trunk/src/z3c/extfile/property.py
===================================================================
--- z3c.extfile/trunk/src/z3c/extfile/property.py	2006-08-14 10:52:56 UTC (rev 69463)
+++ z3c.extfile/trunk/src/z3c/extfile/property.py	2006-08-14 12:33:43 UTC (rev 69464)
@@ -25,6 +25,9 @@
         return self.hd.open(digest)
 
     def __set__(self, inst, value):
+        # ignore if value is None
+        if value is None:
+            return
         # Handle case when value is a string
         if isinstance(value, unicode):
             value = value.encode('UTF-8')



More information about the Checkins mailing list