Commit by: john
Modified files:
chandler/parcels/osaf/contentmodel/ItemCollection.py 1.42 1.43

Log message:
* fixed #2740, #2510, and a bug in the fix for #2701

Bugzilla links:
http://bugzilla.osafoundation.org/show_bug.cgi?id=2740
http://bugzilla.osafoundation.org/show_bug.cgi?id=2510
http://bugzilla.osafoundation.org/show_bug.cgi?id=2701

ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/contentmodel/ItemCollection.py.diff?r1=text&tr1=1.42&r2=text&tr2=1.43

Index: chandler/parcels/osaf/contentmodel/ItemCollection.py
diff -u chandler/parcels/osaf/contentmodel/ItemCollection.py:1.42 
chandler/parcels/osaf/contentmodel/ItemCollection.py:1.43
--- chandler/parcels/osaf/contentmodel/ItemCollection.py:1.42   Tue Mar 22 
14:16:20 2005
+++ chandler/parcels/osaf/contentmodel/ItemCollection.py        Tue Mar 22 
16:58:19 2005
@@ -1,4 +1,4 @@
-__date__ = "$Date: 2005/03/22 22:16:20 $"
+__date__ = "$Date: 2005/03/23 00:58:19 $"
 __copyright__ = "Copyright (c) 2003-2004 Open Source Applications Foundation"
 __license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm";
 
@@ -74,7 +74,7 @@
         if self.ruleIsStale:
             args = {}
             newQueryString = self._rule
-            if self.source:
+            if self.source is not None:
                 if newQueryString:
                     newQueryString = "union (" + newQueryString + ", for i in 
$0 where True)"
                 else:
@@ -129,11 +129,11 @@
             return self.resultSet.getIndexPosition (self.indexName, item)
 
     def subscribe(self, *arguments, **keywords):
-        if self.source:
+        if self.source is not None:
             self.source.subscribe (self, "")
         super (ItemCollection, self).subscribe (*arguments, **keywords)
 
     def unsubscribe(self, *arguments, **keywords):
         super (ItemCollection, self).unsubscribe (*arguments, **keywords)
-        if self.source:
+        if self.source is not None:
             self.source.unsubscribe (self)

_______________________________________________
Commits mailing list
Commits@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/commits

Reply via email to