Title: [commits] (vajda) [11101] fixed bug in setting source
Revision
11101
Author
vajda
Date
2006-07-08 10:00:59 -0700 (Sat, 08 Jul 2006)

Log Message

fixed bug in setting source

Modified Paths

Diff

Modified: trunk/chandler/parcels/osaf/pim/collections.py (11100 => 11101)

--- trunk/chandler/parcels/osaf/pim/collections.py	2006-07-08 16:40:57 UTC (rev 11100)
+++ trunk/chandler/parcels/osaf/pim/collections.py	2006-07-08 17:00:59 UTC (rev 11101)
@@ -267,10 +267,12 @@
         return None
     def _setSource(self, source):
         sources = self.sources
-        if sources and sources.first() is not source:
+        if sources:
+            if sources.first() is source:
+                return
             sources.clear()
-            if source is not None:
-                sources.append(source)
+        if source is not None:
+            sources.append(source)
     def _delSource(self):
         self.sources.clear()
     source = property(_getSource, _setSource, _delSource)




_______________________________________________
Commits mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/commits

Reply via email to