Changeset 1191


Ignore:
Timestamp:
04/02/09 13:54:41 (3 years ago)
Author:
Peter Peterson
Message:

Added property that returns the long path (with class names). Refs #101.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bindings/python/nxs/napi.py

    r1190 r1191  
    319319        return '/'+'/'.join(mypath) 
    320320    path = property(_getpath,doc="Unix-style path to node") 
     321 
     322    def _getlongpath(self): 
     323        mypath = [':'.join(level) for level in self._path] 
     324        return '/' + '/'.join(mypath) 
     325    longpath = property(_getlongpath, doc="Unix-style path including " \ 
     326                        + "nxclass to the node") 
    321327 
    322328    def __del__(self): 
Note: See TracChangeset for help on using the changeset viewer.