changeset 638:c014e4d5b45d

added a status hook to the high level python bindings. Hopefully it works, if it doesn't sorry, can't get a working copy of audioDB lib on my box as I need to recompile gsoap and the outside world connection is down...
author map01bf
date Tue, 29 Sep 2009 17:31:42 +0000
parents be94366c6aa2
children 2eaea1afd6b3
files bindings/python/pyadb.py
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/bindings/python/pyadb.py	Tue Sep 29 17:05:15 2009 +0000
+++ b/bindings/python/pyadb.py	Tue Sep 29 17:31:42 2009 +0000
@@ -130,6 +130,19 @@
 			raise NotImplementedError("direct data query not yet implemented.  Sorry.")
 		return Pyadb.Result(result, self.configQuery)
 	
+	def status(self):
+		'''update attributes and return them as a dict'''
+		self._updateDBAttributes()
+		return {	"numFiles" : self.numFiles, 
+					"dims"     : self.dims, 
+					"dudCount" : self.dudCount, 
+					"nullCount": self.nullCount, 
+					"length"   : self.length, 
+					"data_region_size" : self.data_region_size,
+					"l2Normed" : self.l2Normed,
+					"hasPower" : self.hasPower,
+					"hasTimes" : self.hasTimes, 
+					"usesRefs" : self.usesRefs}
 	###internal methods###
 	def _updateDBAttributes(self):
 		'''run _pyadb_status to fill/update the database level flags and info'''