dabo Commit
Revision 6040
Date: 2010-09-29 22:55:18 -0700 (Wed, 29 Sep 2010)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6040

Changed:
U   trunk/ide/ReportDesigner.py

Log:
Copy/paste of Variable objects failed just like Group objects failed before 
my last commit. Fixed.


Diff:
Modified: trunk/ide/ReportDesigner.py
===================================================================
--- trunk/ide/ReportDesigner.py 2010-09-30 05:48:45 UTC (rev 6039)
+++ trunk/ide/ReportDesigner.py 2010-09-30 05:55:18 UTC (rev 6040)
@@ -434,8 +434,10 @@
                                        copyObjs = []
                                        for obj in objs:
                                                copyObj = obj.getMemento()
-                                               if obj.has_key("GroupHeader"):
+                                               if obj.__class__.__name__ == 
"Group":
                                                        parentBandInfo = 
["Groups", None]
+                                               elif obj.__class__.__name__ == 
"Variable":
+                                                       parentBandInfo = 
["Variables", None]
                                                else:
                                                        parentBand = 
rdc.getParentBand(obj)
                                                        parentBandInfo = 
[ustr(type(parentBand)).split(".")[-1][:-2], None]
@@ -465,6 +467,8 @@
                                        if parentInfo:
                                                if parentInfo[0] == "Groups":
                                                        parent = 
rdc.ReportForm["Groups"]
+                                               elif parentInfo[0] == 
"Variables":
+                                                       parent = 
rdc.ReportForm["Variables"]
                                                elif "Group" in parentInfo[0]:
                                                        parent = 
rdc.getGroupBandByExpr(parentInfo[1])[parentInfo[0]]
                                                else:



_______________________________________________
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