Back to index

plone3  3.1.7
Public Member Functions
MimetypesRegistry.interfaces.IMimetypesRegistry Class Reference
Inheritance diagram for MimetypesRegistry.interfaces.IMimetypesRegistry:
Inheritance graph
[legend]
Collaboration diagram for MimetypesRegistry.interfaces.IMimetypesRegistry:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def classify
def lookup
def lookupExtension
def mimetypes
def list_mimetypes

Detailed Description

Definition at line 45 of file interfaces.py.


Member Function Documentation

def MimetypesRegistry.interfaces.IMimetypesRegistry.classify (   data,
  mimetype = None,
  filename = None 
)
return a content type for this data or None
None should rarely be returned as application/octet can be
used to represent most types

Definition at line 47 of file interfaces.py.

00047 
00048     def classify(data, mimetype=None, filename=None):
00049         """return a content type for this data or None
00050         None should rarely be returned as application/octet can be
00051         used to represent most types
00052         """

Here is the caller graph for this function:

return all defined mime types, as string

Definition at line 75 of file interfaces.py.

00075 
00076     def list_mimetypes():
00077         """return all defined mime types, as string"""

Lookup for imimetypes object matching mimetypestring

mimetypestring may have an empty minor part or containing a wildcard (*)
mimetypestring may be an imimetype object (in this case it will be
returned unchanged, else it should be a RFC-2046 name

return a list of mimetypes objects associated with the RFC-2046 name
return an empty list if no one is known.

Definition at line 53 of file interfaces.py.

00053 
00054     def lookup(mimetypestring):
00055         """Lookup for imimetypes object matching mimetypestring
00056 
00057         mimetypestring may have an empty minor part or containing a wildcard (*)
00058         mimetypestring may be an imimetype object (in this case it will be
00059         returned unchanged, else it should be a RFC-2046 name
00060 
00061         return a list of mimetypes objects associated with the RFC-2046 name
00062         return an empty list if no one is known.
00063         """

Here is the caller graph for this function:

return the mimetypes object associated with the file's extension
return None if it is not known.

filename maybe a file name like 'content.txt' or an extension like 'rest'

Definition at line 64 of file interfaces.py.

00064 
00065     def lookupExtension(filename):
00066         """ return the mimetypes object associated with the file's extension
00067         return None if it is not known.
00068 
00069         filename maybe a file name like 'content.txt' or an extension like 'rest'
00070         """

Here is the caller graph for this function:

return all defined mime types, each one implements at least imimetype

Definition at line 71 of file interfaces.py.

00071 
00072     def mimetypes():
00073         """return all defined mime types, each one implements at least imimetype
00074         """

Here is the caller graph for this function:


The documentation for this class was generated from the following file: