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
Collaboration diagram for MimetypesRegistry.mime_types.mtr_mimetypes.text_xml:
Collaboration graph

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

Member Function Documentation

Definition at line 81 of file

00082     def classify(self, data):
00083         m ='^\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

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

Definition at line 76 of file

Definition at line 79 of file

Definition at line 78 of file

Definition at line 77 of file

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