Package flumotion :: Package component :: Package misc :: Package httpserver :: Module cachedprovider :: Class LocalPath
[hide private]

Class LocalPath

source code

           object --+        
                    |        
fileprovider.FilePath --+    
                        |    
      localpath.LocalPath --+
                            |
  extern.log.log.Loggable --+
                            |
                           LocalPath

Instance Methods [hide private]
 
__init__(self, plug, path)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
MediaPath
child(self, name)
Returns: a FilePath that point at the specified child
source code
AsyncFile | defer.Deferred
open(self)
Returns: the pointed file opened as an asynchronous file or a deferred that will be called back with one.
source code
 
_removeCachedFile(self, sourcePath) source code

Inherited from localpath.LocalPath: __str__

Inherited from localpath.LocalPath (private): _getChildPath

Inherited from fileprovider.FilePath: getMimeType

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

Inherited from extern.log.log.Loggable: __providedBy__, __provides__, debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure, writeMarker

Class Variables [hide private]
  logCategory = 'fileprovider-localcached'
Implementors can provide a category to log their messages under.

Inherited from localpath.LocalPath: contentTypes, mimeType

Inherited from extern.log.log.Loggable: __implemented__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, plug, path)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

child(self, name)

source code 
Parameters:
  • name - the name of a child of the pointed directory
Returns: MediaPath
a FilePath that point at the specified child
Raises:
Overrides: fileprovider.FilePath.child
(inherited documentation)

open(self)

source code 
Returns: AsyncFile | defer.Deferred
the pointed file opened as an asynchronous file or a deferred that will be called back with one.
Raises:
  • NotFoundError - if the file does not exists anymore
  • AccessError - if the file cannot be opened because of right restriction
Overrides: fileprovider.FilePath.open
(inherited documentation)