Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Static Private Attributes
MimetypesRegistry.mime_types.mtr_mimetypes.text_xml Class Reference
Inheritance diagram for MimetypesRegistry.mime_types.mtr_mimetypes.text_xml:
Inheritance graph
[legend]
Collaboration diagram for MimetypesRegistry.mime_types.mtr_mimetypes.text_xml:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def classify

Static Public Attributes

tuple mimetypes = ('text/xml',)
tuple extensions = ('xml',)
int binary = 0

Static Private Attributes

tuple __implements__ = MimeTypeItem.__implements__+(IClassifier,)
string __name__ = "Extensible Markup Language (XML)"

Detailed Description

Definition at line 72 of file mtr_mimetypes.py.


Member Function Documentation

Definition at line 81 of file mtr_mimetypes.py.

00081 
00082     def classify(self, data):
00083         m = re.search('^\s*<\\?xml.*\\?>', data)
00084         if m:
00085             return 1 # True
00086         return None  # False

Here is the caller graph for this function:


Member Data Documentation

tuple MimetypesRegistry.mime_types.mtr_mimetypes.text_xml.__implements__ = MimeTypeItem.__implements__+(IClassifier,) [static, private]

Definition at line 74 of file mtr_mimetypes.py.

string MimetypesRegistry.mime_types.mtr_mimetypes.text_xml.__name__ = "Extensible Markup Language (XML)" [static, private]

Definition at line 76 of file mtr_mimetypes.py.

Definition at line 79 of file mtr_mimetypes.py.

Definition at line 78 of file mtr_mimetypes.py.

Definition at line 77 of file mtr_mimetypes.py.


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