Package web2py :: 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' shared mime info database version 0.70.

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':...
Variables Details [hide private]

CONTENT_TYPE

Value:
{'.123': 'application/vnd.lotus-1-2-3',
 '.3ds': 'image/x-3ds',
 '.3g2': 'video/3gpp',
 '.3ga': 'video/3gpp',
 '.3gp': 'video/3gpp',
 '.3gpp': 'video/3gpp',
 '.602': 'application/x-t602',
 '.669': 'audio/x-mod',
...