Package mrv :: Module conf :: Class ExtendedFileInterface
[hide private]
[frames] | no frames]

Class ExtendedFileInterface

source code

object --+
         |
        ExtendedFileInterface
Known Subclasses:

Define additional methods required by the Configuration System :warning: Additionally, readline and write must be supported - its not mentioned here for reasons of speed :note: override the methods with implementation
Instance Methods [hide private]
 
isWritable(self)
Returns: True if the file can be written to
source code
 
isClosed(self)
Returns: True if the file has been closed, and needs to be reopened for writing
source code
 
name(self)
Returns: a name for the file object
source code
 
openForWriting(self)
Open the file to write to it :raise IOError: on failure
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

isWritable(self)

source code 
Returns:
True if the file can be written to

isClosed(self)

source code 
Returns:
True if the file has been closed, and needs to be reopened for writing

name(self)

source code 
Returns:
a name for the file object