Logo Search packages:      
Sourcecode: zope-filesystemsite version File versions

def zope-filesystemsite-1.3::FSObject::BadFile::_readFile (   self,
  reparse 
) [private]

Read the data from the filesystem.

Read the file indicated by exandpath(self._filepath), and parse the
data if necessary.  'reparse' is set when reading the second
time and beyond.

Reimplemented from zope-filesystemsite-1.3::FSObject::FSObject.

Definition at line 191 of file FSObject.py.

00191                                   :
        """Read the data from the filesystem.
        
        Read the file indicated by exandpath(self._filepath), and parse the
        data if necessary.  'reparse' is set when reading the second
        time and beyond.
        """
        try:
            fp = expandpath(self._filepath)
            file = open(fp, 'rb')
            try:
                data = self.file_contents = file.read()
            finally:
                file.close()
        except:  # No errors of any sort may propagate
            data = self.file_contents = None #give up
        return data
    
    security.declarePublic( 'getFileContents' )
    def getFileContents( self ):


Generated by  Doxygen 1.6.0   Back to index