commit-gnue
[Top][All Lists]
Advanced

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

r6795 - trunk/gnue-forms/src


From: jamest
Subject: r6795 - trunk/gnue-forms/src
Date: Thu, 9 Dec 2004 17:20:37 -0600 (CST)

Author: jamest
Date: 2004-12-09 17:20:36 -0600 (Thu, 09 Dec 2004)
New Revision: 6795

Modified:
   trunk/gnue-forms/src/GFForm.py
   trunk/gnue-forms/src/GFInstance.py
Log:
added a gDebug to dump commit errors (dialog too small)
added a getCurrentBlockName to triggernamespace


Modified: trunk/gnue-forms/src/GFForm.py
===================================================================
--- trunk/gnue-forms/src/GFForm.py      2004-12-09 22:36:28 UTC (rev 6794)
+++ trunk/gnue-forms/src/GFForm.py      2004-12-09 23:20:36 UTC (rev 6795)
@@ -118,9 +118,9 @@
 #                               
'getCurrentEntry':{'function':self.triggerGetCurrentEntry,
 #                                                  'global': True,
 #                                                  },
-#                               
'getCurrentBlock':{'function':self.triggerGetCurrentBlock,
-#                                                  'global': True,
-#                                                  },
+                              
'getCurrentBlockName':{'function':self.triggerGetCurrentBlockName,
+                                                 'global': True,
+                                                 },
 #                               
'getCurrentPage':{'function':self.triggerGetCurrentPage,
 #                                                 'global': True,
 #                                                },
@@ -1152,6 +1152,13 @@
     self._in_trigger_lock = False
 
 
+  #
+  # allow the trigger to get a handle to
+  # an actual GFBlock object
+  #
+  #
+  def triggerGetCurrentBlockName(self):
+    return self._currentBlock.name
 #   #
 #   # allow the trigger to get a handle to
 #   # an actual GFEntry object

Modified: trunk/gnue-forms/src/GFInstance.py
===================================================================
--- trunk/gnue-forms/src/GFInstance.py  2004-12-09 22:36:28 UTC (rev 6794)
+++ trunk/gnue-forms/src/GFInstance.py  2004-12-09 23:20:36 UTC (rev 6795)
@@ -1184,6 +1184,7 @@
     message = event._form.commit ()
     if message:
       self.displayMessageBox (message, 'Error')
+      gDebug(5,message)
       return
 
     self._entryUpdated (event._form)





reply via email to

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