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

Class Buffer

      object --+        
               |        
debug.debugmixin --+    
                   |    
      BufferVFSMixin --+
                       |
                      Buffer

Abstraction around a file-like object obtained from a url.

Each buffer instance corresponds a unique url, handles the interaction between the file-like object that is used to read the data and the STCInterface that is used to hold the representation in memory.

The STCInterface provides the low-level access to the file, and there is a one-to-one mapping from a buffer to an STCInterface instance.

Instance Methods
 
__init__(self, url, defaultmode=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
__del__(self)
 
addViewer(self, mode)
 
removeViewer(self, view)
 
removeAllViewsAndDelete(self)
 
isBasename(self, basename)
 
setName(self)
 
getTabName(self)
 
openGUIThreadStart(self)
 
openBackgroundThread(self, progress_message=None)
 
openGUIThreadSuccess(self)
 
open(self)
 
revert(self, encoding=None)
 
save(self, url=None)
 
showModifiedAll(self)
 
setBusy(self, state)
 
startChangeDetection(self)
 
OnChanged(self, evt)

Inherited from BufferVFSMixin: closeBufferedReader, cwd, getBufferedReader, getFilename, isURL, setURL

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

Class Methods
 
initDummyFrame(cls)
 
loadPermanent(cls, url, defaultmode=None)
 
createErrorBuffer(cls, url, error)

Inherited from debug.debugmixin: dprint

Class Variables
  count = 0
  error_buffer_count = 0
  filenames = {}
  dummyframe = None

Inherited from debug.debugmixin: debuglevel

Properties

Inherited from object: __class__

Method Details

__init__(self, url, defaultmode=None)
(Constructor)

 

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

Overrides: object.__init__
(inherited documentation)