Changeset 1186
- Timestamp:
- 03/02/09 16:35:28 (3 years ago)
- File:
-
- 1 edited
-
trunk/bindings/python/nxs/napi.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bindings/python/nxs/napi.py
r1185 r1186 969 969 storage = c_int(0) 970 970 status = nxlib.nxigetnextattr_(self.handle,name,_ref(length),_ref(storage)) 971 if status == EOD: 972 return (None, None, None) 971 973 if status == ERROR or status == EOD: 972 974 raise NeXusError, "Could not get next attr: %s"%(self._loc()) … … 1047 1049 if status == ERROR: 1048 1050 raise NeXusError, "Could not write attr %s: %s"%(name,self._loc()) 1051 1052 def getattrs(self): 1053 """ 1054 Returns a dicitonary of the attributes on the current node. 1055 1056 This is a second form of attrs(self). 1057 """ 1058 result = {} 1059 for (name, value) in self.attrs(): 1060 result[name] = value 1061 return result 1049 1062 1050 1063 def attrs(self):
Note: See TracChangeset
for help on using the changeset viewer.
