commit-gnue
[Top][All Lists]
Advanced

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

r6499 - trunk/gnue-forms/src/GFObjects


From: johannes
Subject: r6499 - trunk/gnue-forms/src/GFObjects
Date: Fri, 15 Oct 2004 05:01:51 -0500 (CDT)

Author: johannes
Date: 2004-10-15 05:01:50 -0500 (Fri, 15 Oct 2004)
New Revision: 6499

Modified:
   trunk/gnue-forms/src/GFObjects/GFBlock.py
Log:
Moved the call () method into the block


Modified: trunk/gnue-forms/src/GFObjects/GFBlock.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFBlock.py   2004-10-15 09:05:46 UTC (rev 
6498)
+++ trunk/gnue-forms/src/GFObjects/GFBlock.py   2004-10-15 10:01:50 UTC (rev 
6499)
@@ -142,6 +142,8 @@
                     'description':'Cancels query input.'},
         'executeQuery':{'function':self.processQuery,
                         'description':'Executes the current query.'},
+        'call': {'function'   : self.callFunction,
+                 'description': 'Executes a function of the datasource'}
         }
 
     self._triggerProperties={
@@ -671,7 +673,20 @@
   def registerScrollbar(self, sb):
     self._scrollbars.append(sb)
 
+  # ---------------------------------------------------------------------------
+  # Call a datasource's function
+  # ---------------------------------------------------------------------------
 
+  def callFunction (self, name, parameters):
+    try:
+      res = self._dataSourceLink.callFuncOfCurrentRecordsetEntry (name,
+                        parameters)
+    finally:
+      self.switchRecord (0)
+
+    return res
+
+
   ###################################################################
   #
   # Trigger settable stuff
@@ -720,6 +735,7 @@
     return self.autoNextRecord
 
 
+
 #
 # _generateConditional
 #





reply via email to

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