Back to index

plone3  3.1.7
Classes | Functions | Variables
MimetypesRegistry.MimeTypesRegistry Namespace Reference

Classes

class  MimeTypesRegistry

Functions

def split

Variables

dictionary suffix_map
dictionary encodings_map

Function Documentation

split a mime type in a (major / minor) 2-uple 

Definition at line 444 of file MimeTypesRegistry.py.

00444 
00445 def split(name):
00446     """ split a mime type in a (major / minor) 2-uple """
00447     try:
00448         major, minor = name.split('/', 1)
00449     except:
00450         raise MimeTypeException('Malformed MIME type (%s)' % name)
00451     return major, minor

Variable Documentation

Initial value:
00001 {
00002     'gz': 'gzip',
00003     'Z': 'compress',
00004     }

Definition at line 40 of file MimeTypesRegistry.py.

Initial value:
00001 {
00002     'tgz': '.tar.gz',
00003     'taz': '.tar.gz',
00004     'tz': '.tar.gz',
00005     }

Definition at line 34 of file MimeTypesRegistry.py.