Package peppy :: Module buffers :: Class BufferVFSMixin
[frames] | no frames]

Class BufferVFSMixin

      object --+    
               |    
debug.debugmixin --+
                   |
                  BufferVFSMixin
Known Subclasses:

Mixin class that compartmentalizes the interaction with the vfs

Instance Methods
 
__init__(self, url)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
setURL(self, url)
 
isURL(self, url)
 
getFilename(self)
 
cwd(self, use_vfs=False)
Find the current working directory of the buffer.
 
getBufferedReader(self, size=1024)
 
closeBufferedReader(self)

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Methods

Inherited from debug.debugmixin: dprint

Class Variables

Inherited from debug.debugmixin: debuglevel

Properties

Inherited from object: __class__

Method Details

__init__(self, url)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

cwd(self, use_vfs=False)

 

Find the current working directory of the buffer.

Can be used in two ways based on use_vfs:

use_vfs == True: uses the vfs to return the directory in the same scheme as the buffer

use_vfs == False (the default): find the current working directory on the local filesystem. Some schemes, like tar, for instance, are overlays on the current filesystem and the cwd of those schemes with this sense of use_vfs will report the overlayed directory.