[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r5720 - trunk/gnue-common/src/datasources
From: |
jamest |
Subject: |
r5720 - trunk/gnue-common/src/datasources |
Date: |
Thu, 15 Apr 2004 09:09:58 -0500 (CDT) |
Author: jamest
Date: 2004-04-15 09:09:57 -0500 (Thu, 15 Apr 2004)
New Revision: 5720
Modified:
trunk/gnue-common/src/datasources/GDataSource.py
Log:
untested addition of ds.count() and ds.recordCount
Modified: trunk/gnue-common/src/datasources/GDataSource.py
===================================================================
--- trunk/gnue-common/src/datasources/GDataSource.py 2004-04-14 21:48:54 UTC
(rev 5719)
+++ trunk/gnue-common/src/datasources/GDataSource.py 2004-04-15 14:09:57 UTC
(rev 5720)
@@ -79,10 +79,14 @@
},
'getCondition':{'function':self.getCondition},
'setCondition':{'function':self.setCondition},
+ 'count' : {'function':self.triggerGetCount},
}
self._triggerProperties = {'extensions':{'get':self.getExtensions,
- 'direct':1}}
+ 'direct':1},
+ 'recordCount':{'get':self.triggerGetCount,
+ 'direct':1},
+ }
def __getattr__(self, attr):
if self._dataObject and attr[1] != '_' and hasattr(self._dataObject,attr):
@@ -113,6 +117,11 @@
pass
return GObjects.GObj._buildObject(self)
+ def triggerGetCount(self):
+ if self._currentResultSet:
+ return len(self._currentResultSet)
+ else:
+ return 0
def triggerSimpleQuery(self,maskDict):
queryDict = {}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r5720 - trunk/gnue-common/src/datasources,
jamest <=