Package gluon :: Module contenttype
[hide private]
[frames] | no frames]

Module contenttype

source code

| This file is part of the web2py Web Framework | Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu> | License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)

CONTENT_TYPE dictionary created against freedesktop.org's shared mime info database version 1.1.

Deviations from official standards:

Additions:

Functions [hide private]
 
contenttype(filename, default='text/plain')
Returns the Content-Type string matching extension of the given filename.
source code
Variables [hide private]
  CONTENT_TYPE = {'.123': 'application/vnd.lotus-1-2-3', '.3ds':...
  __package__ = None
hash(x)
Variables Details [hide private]

CONTENT_TYPE

Value:
{'.123': 'application/vnd.lotus-1-2-3',
 '.3ds': 'image/x-3ds',
 '.3g2': 'video/3gpp2',
 '.3ga': 'video/3gpp',
 '.3gp': 'video/3gpp',
 '.3gp2': 'video/3gpp2',
 '.3gpp': 'video/3gpp',
 '.3gpp2': 'video/3gpp2',
...