Package flumotion :: Package component :: Package misc :: Package httpfile :: Module file :: Class MimedFileFactory
[hide private]

Class MimedFileFactory

source code

extern.log.log.Loggable --+
                          |
                         MimedFileFactory

I create File subclasses based on the mime type of the given path.

Instance Methods [hide private]
 
__init__(self, httpauth, mimeToResource=None) source code
 
create(self, path)
Creates and returns an instance of a File subclass based on the mime type/extension of the given path.
source code

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

Class Variables [hide private]
  contentTypes = {'.a': 'application/octet-stream', '.ai': 'appl...
  defaultType = 'application/octet-stream'

Inherited from extern.log.log.Loggable: __implemented__, __provides__, logCategory

Class Variable Details [hide private]

contentTypes

Value:
{'.a': 'application/octet-stream',
 '.ai': 'application/postscript',
 '.aif': 'audio/x-aiff',
 '.aifc': 'audio/x-aiff',
 '.aiff': 'audio/x-aiff',
 '.au': 'audio/basic',
 '.avi': 'video/x-msvideo',
 '.bat': 'text/plain',
...