commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

r5642 - trunk/gnue-forms/src


From: jamest
Subject: r5642 - trunk/gnue-forms/src
Date: Mon, 5 Apr 2004 20:13:12 -0500 (CDT)

Author: jamest
Date: 2004-04-05 20:13:11 -0500 (Mon, 05 Apr 2004)
New Revision: 5642

Modified:
   trunk/gnue-forms/src/GFForm.py
Log:
fix for first block/field in a form not having an entry link


Modified: trunk/gnue-forms/src/GFForm.py
===================================================================
--- trunk/gnue-forms/src/GFForm.py      2004-04-05 16:03:35 UTC (rev 5641)
+++ trunk/gnue-forms/src/GFForm.py      2004-04-06 01:13:11 UTC (rev 5642)
@@ -257,8 +257,11 @@
   def findFocus(self, object):
 
     if object._type == 'GFField':
-      GDebug.printMesg(0,"Ack! A GFField was passed to 'findFocus'.")
-      object = object._entryList[0]
+      GDebug.printMesg(0,"GFField was passed to 'findFocus'.")
+      try:
+        object = object._entryList[0]
+      except IndexError:
+        return None
 
     entry = None
     if isinstance(object, GFObj):





reply via email to

[Prev in Thread] Current Thread [Next in Thread]