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

Class ConfigFile

source code

           object --+    
                    |    
ExtendedFileInterface --+
                        |
                       ConfigFile

file object implementation of the ExtendedFileInterface
Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
Initialize our caching values - additional values will be passed to 'file' constructor
source code
 
__getattr__(self, attr) source code
 
_modeSaysWritable(self) source code
 
_isWritable(self)
Check whether the file is effectively writable by opening it for writing :todo: evaluate the usage of stat instead - would be faster, but I do not know whether it works on NT with user rights etc.
source code
 
isWritable(self)
Returns: True if the file is truly writable
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__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]
  _fp
  _writable

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 
Initialize our caching values - additional values will be passed to 'file' constructor
Overrides: object.__init__

isWritable(self)

source code 
Returns:
True if the file is truly writable
Overrides: ExtendedFileInterface.isWritable

isClosed(self)

source code 
Returns:
True if the file has been closed, and needs to be reopened for writing
Overrides: ExtendedFileInterface.isClosed
(inherited documentation)

name(self)

source code 
Returns:
a name for the file object
Overrides: ExtendedFileInterface.name
(inherited documentation)

openForWriting(self)

source code 
Open the file to write to it :raise IOError: on failure
Overrides: ExtendedFileInterface.openForWriting
(inherited documentation)