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

type LocalPath

source code

           object --+    
                    |    
fileprovider.FilePath --+
                        |
                       LocalPath
Known Subclasses:

Instance Methods [hide private]
 
__init__(self, path) source code
 
__str__(self) 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
str
_getChildPath(self, name)
Returns: the path of the child
source code

Inherited from fileprovider.FilePath: getMimeType

Class Variables [hide private]
  contentTypes = ourmimetypes.MimeTypes()
  mimeType = None
Method Details [hide private]

__init__(self, path)
(Constructor)

source code 
Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
Overrides: object.__str__
(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)

_getChildPath(self, name)

source code 
Parameters:
  • name (str) - the name of a child of the pointed directory
Returns: str
the path of the child
Raises: