dabo Commit
Revision 6822
Date: 2011-09-06 13:09:40 -0700 (Tue, 06 Sep 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6822
Changed:
U trunk/dabo/lib/reportWriter.py
Log:
Allow for the image expression to evaluate to None, and just don't print
anything
in that case.
Diff:
Modified: trunk/dabo/lib/reportWriter.py
===================================================================
--- trunk/dabo/lib/reportWriter.py 2011-09-03 18:53:03 UTC (rev 6821)
+++ trunk/dabo/lib/reportWriter.py 2011-09-06 20:09:40 UTC (rev 6822)
@@ -1681,7 +1681,9 @@
c.clipPath(p, stroke=stroke)
img = obj.getProp("expr")
- if isinstance(img, basestring) and "\0" not in img:
+ if img is None:
+ pass
+ elif isinstance(img, basestring) and "\0" not in img:
# this is a path to image file, not the image
itself
if not os.path.exists(img):
img = os.path.join(self.HomeDirectory,
img)
_______________________________________________
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]