dabo Commit
Revision 5244
Date: 2009-06-16 16:46:01 -0700 (Tue, 16 Jun 2009)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5244

Changed:
U   trunk/ide/ReportDesigner.py

Log:
Fixed bug in the popup menu generation code.


Diff:
Modified: trunk/ide/ReportDesigner.py
===================================================================
--- trunk/ide/ReportDesigner.py 2009-06-03 22:35:56 UTC (rev 5243)
+++ trunk/ide/ReportDesigner.py 2009-06-16 23:46:01 UTC (rev 5244)
@@ -191,7 +191,11 @@
                                                                        fields 
= tc[0].keys()
                                                        elif typ == var:
                                                                for v in var:
-                                                                       
fields.append(v["Name"])
+                                                                       try:
+                                                                               
fields.append(v["Name"])
+                                                                       except 
KeyError:
+                                                                               
# variable not given a name
+                                                                               
pass
                                                        fields.sort()
                                                        for field in fields:
                                                                
submenu.append(field, OnHit=onNewObject, 



_______________________________________________
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