dabo Commit
Revision 7200
Date: 2012-06-15 06:36:03 -0700 (Fri, 15 Jun 2012)
Author: Nate
Trac: http://trac.dabodev.com/changeset/7200
Changed:
U trunk/dabo/lib/reportWriter.py
Log:
Broke the save functionality out of the write method into it's own save method.
It has become very useful for putting multiple reports onto the same PDF file.
Diff:
Modified: trunk/dabo/lib/reportWriter.py
===================================================================
--- trunk/dabo/lib/reportWriter.py 2012-06-14 12:29:47 UTC (rev 7199)
+++ trunk/dabo/lib/reportWriter.py 2012-06-15 13:36:03 UTC (rev 7200)
@@ -2553,10 +2553,12 @@
endPage()
self.Canvas.showPages()
if save:
- if self.OutputFile is not None:
- c.save()
- self._canvas = None
+ self.save()
+ def save(self):
+ if self.OutputFile is not None and self._canvas is not None:
+ self._canvas.save()
+ self._canvas = None
def getBandHeight(self, bandDict):
"""Return the height of the band.
_______________________________________________
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]