Author: reinhard
Date: 2007-05-10 03:52:58 -0500 (Thu, 10 May 2007)
New Revision: 9574
Modified:
trunk/gnue-forms/src/GFObjects/GFBlock.py
Log:
Added trigger function to find out the number of records in a block.
Modified: trunk/gnue-forms/src/GFObjects/GFBlock.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFBlock.py 2007-05-10 06:18:42 UTC (rev
9573)
+++ trunk/gnue-forms/src/GFObjects/GFBlock.py 2007-05-10 08:52:58 UTC (rev
9574)
@@ -184,6 +184,7 @@
# Record status
'get_record_status': {'function': self.get_record_status},
+ 'get_record_count': {'function': self.get_record_count},
'is_pending': {'function': self.is_pending},
'get_possible_operations':
{'function': self.get_possible_operations},
@@ -857,6 +858,15 @@
# -------------------------------------------------------------------------
+ def get_record_count(self):
+ """
+ Return the number of records in this block.
+ """
+
+ return self.__resultset.getRecordCount()
+
+ # -------------------------------------------------------------------------
+
def get_possible_operations(self):
"""
Return a list of possible operations for this block.
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue