daboide Commit
Revision 400
Date: 2006-01-27 13:58:02 -0800 (Fri, 27 Jan 2006)
Author: paul
Changed:
U trunk/ReportDesigner.py
Log:
A new, empty object with no properties set is effectively an empty dict,
which evaluates as a boolean False in expressions. Therefore, need to
test whether it is None or not instead.
Diff:
Modified: trunk/ReportDesigner.py
===================================================================
--- trunk/ReportDesigner.py 2006-01-27 21:45:57 UTC (rev 399)
+++ trunk/ReportDesigner.py 2006-01-27 21:58:02 UTC (rev 400)
@@ -1367,8 +1367,7 @@
func(None)
return
-
- if not firstDrawable:
+ if firstDrawable is None:
return
if ctrlDown and key == "enter":
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev