dabo Commit
Revision 5795
Date: 2010-04-23 15:21:24 -0700 (Fri, 23 Apr 2010)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5795

Changed:
U   trunk/dabo/lib/reportWriter.py

Log:
Fix to allow referencing self from objects in the groupHeader band.


Diff:
Modified: trunk/dabo/lib/reportWriter.py
===================================================================
--- trunk/dabo/lib/reportWriter.py      2010-04-23 20:56:02 UTC (rev 5794)
+++ trunk/dabo/lib/reportWriter.py      2010-04-23 22:21:24 UTC (rev 5795)
@@ -1900,7 +1900,7 @@
                                                self.being_deferred = False
                                                beginPage()
                                                y = pageHeaderOrigin[1]
-                                               y = reprintGroupHeaders(y)
+                                               y = 
reprintGroupHeaders(bandDict, y)
                                                headers_reprinted = True
                                        else:
                                                # Move to next column
@@ -2064,7 +2064,8 @@
                        self.Canvas.showPage()
 
                
-               def reprintGroupHeaders(y):
+               def reprintGroupHeaders(bandDict, y):
+                       self = bandDict  ## to allow "self" references from 
groupHeader object
                        for group in groups:
                                reprint = group.get("ReprintHeaderOnNewPage")
                                if reprint is not None:



_______________________________________________
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]

Reply via email to