dabo Commit
Revision 5635
Date: 2010-02-03 15:50:20 -0800 (Wed, 03 Feb 2010)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5635
Changed:
U trunk/dabo/lib/reportWriter.py
Log:
Fixed getTopPt to work with Spanning objects.
Diff:
Modified: trunk/dabo/lib/reportWriter.py
===================================================================
--- trunk/dabo/lib/reportWriter.py 2010-02-03 22:12:01 UTC (rev 5634)
+++ trunk/dabo/lib/reportWriter.py 2010-02-03 23:50:20 UTC (rev 5635)
@@ -819,6 +819,11 @@
give you a dash-dot look.""")
+def getTopPt_spanning(self):
+ # spanning objects don't have height: y is the top point.
+ return self.getPt(self.getProp("y"))
+
+
class SpanningLine(Line):
"""Represents a line that spans from a group or page header to a group
or page footer."""
def initAvailableProps(self):
@@ -835,7 +840,10 @@
self.AvailableProps["yFooter"] = toPropDict(float, 0.0,
"""Specifies the y of the ending point of the
line, in the group or page footer.""")
+ getTopPt = getTopPt_spanning
+ getTopPt.__doc__ = Drawable.getTopPt.__doc__
+
class SpanningRectangle(Rectangle):
"""Represents a rectangle that spans from a group or page header to a
group or page footer."""
def initAvailableProps(self):
@@ -852,7 +860,11 @@
self.AvailableProps["yFooter"] = toPropDict(float, 0.0,
"""Specifies the y of the ending point of the
line, in the group or page footer.""")
+ getTopPt = getTopPt_spanning
+ getTopPt.__doc__ = Drawable.getTopPt.__doc__
+
+
class Frameset(Drawable):
"""Represents a frameset."""
def initAvailableProps(self):
_______________________________________________
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]