# HG changeset patch # User map01bf # Date 1254245502 0 # Node ID c014e4d5b45df4e0dec4c53565b67f8f1bf22107 # Parent be94366c6aa29844f0cfd0ada403fd04ee03ba10 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... diff -r be94366c6aa2 -r c014e4d5b45d bindings/python/pyadb.py --- 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'''