dabo Commit
Revision 5202
Date: 2009-05-04 14:41:39 -0700 (Mon, 04 May 2009)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5202
Changed:
U trunk/dabo/lib/reportWriter.py
Log:
The Show property wasn't being correctly in some cases. Fixed.
Diff:
Modified: trunk/dabo/lib/reportWriter.py
===================================================================
--- trunk/dabo/lib/reportWriter.py 2009-05-04 00:01:22 UTC (rev 5201)
+++ trunk/dabo/lib/reportWriter.py 2009-05-04 21:41:39 UTC (rev 5202)
@@ -338,7 +338,7 @@
Must evaluate to 'bottom', 'middle', or
'top'.""")
- self.AvailableProps["Show"] = toPropDict(bool, None,
+ self.AvailableProps["Show"] = toPropDict(bool, True,
"""Determines if the object is shown on the
report.
Specify an expression that evaluates to True or
False. If False,
@@ -1506,16 +1506,9 @@
if bandDict.has_key("Objects"):
for obj in bandDict["Objects"]:
- show = obj.get("show")
- if show is not None:
- try:
- ev = eval(show)
- except StandardError:
- ## expression failed to
eval: default to True (show it)
- ev = True
- if not ev:
- # user's show evaluated
to False: don't print!
- continue
+ show = obj.getProp("show",
returnException=True)
+ if show == False:
+ continue
x1 = self.getPt(obj.getProp("x"))
y1 = self.getPt(obj.getProp("y"))
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]