Changeset 4035
- Timestamp:
- 04/14/08 11:20:08 (3 months ago)
- Files:
-
- trunk/dabo/lib/reportWriter.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/dabo/lib/reportWriter.py
r3887 r4035 1118 1118 c.clipPath(p, stroke=stroke) 1119 1119 1120 if mode == "clip": 1120 imageFile = obj.getProp("expr") 1121 if imageFile and not os.path.exists(imageFile): 1122 imageFile = os.path.join(self.HomeDirectory, imageFile) 1123 if imageFile: 1124 imageFile = str(imageFile) 1125 1126 if imageFile and mode == "clip": 1121 1127 # Need to set w,h to None for the drawImage, which will draw it in its 1122 1128 # "natural" state 1:1 pixel:point, which could flow out of the object's … … 1124 1130 width, height = None, None 1125 1131 1126 imageFile = obj.getProp("expr") 1127 if not os.path.exists(imageFile): 1128 imageFile = os.path.join(self.HomeDirectory, imageFile) 1129 imageFile = str(imageFile) 1130 1131 try: 1132 if imageFile: 1132 1133 c.drawImage(imageFile, 0, 0, width, height, mask) 1133 except: 1134 pass 1134 1135 1135 elif objType == "BarGraph": 1136 1136 # Do these imports here so as not to require the huge matplotlib unless … … 1558 1558 1559 1559 # print group headers for this group if necessary: 1560 brandNewPage = False 1560 1561 for idx, group in enumerate(groups): 1561 1562 vv = self._groupValues[group["expr"]] … … 1564 1565 np = eval(group.get("startOnNewPage", "False")) \ 1565 1566 and self.RecordNumber > 0 1566 if np :1567 if np and not brandNewPage: 1567 1568 endPage() 1568 1569 beginPage() 1569 1570 y = None 1571 brandNewPage = True ## don't start multiple new pages 1570 1572 y = printBand("groupHeader", y, group) 1571 1573
