Package flumotion :: Package component :: Package misc :: Package httpserver :: Module httpfile :: 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, rateController=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, writeMarker

Class Variables [hide private]
  contentTypes = {'.1': 'application/x-troff-man', '.2': 'applic...
  defaultType = 'application/octet-stream'

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

Class Variable Details [hide private]

contentTypes

Value:
{'.1': 'application/x-troff-man',
 '.2': 'application/x-troff-man',
 '.3': 'application/x-troff-man',
 '.4': 'application/x-troff-man',
 '.5': 'application/x-troff-man',
 '.6': 'application/x-troff-man',
 '.7': 'application/x-troff-man',
 '.8': 'application/x-troff-man',
...