Back to index

plone3  3.1.7
Public Member Functions
CMFCore.interfaces._tools.IContentTypeRegistry Class Reference
Inheritance diagram for CMFCore.interfaces._tools.IContentTypeRegistry:
Inheritance graph
[legend]
Collaboration diagram for CMFCore.interfaces._tools.IContentTypeRegistry:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def findTypeName

Detailed Description

Apply policy mapping PUT arguments to a CMF portal type.

Definition at line 436 of file _tools.py.


Member Function Documentation

Apply policy mapping PUT arguments to a CMF portal type.
Return the the portal type (an ID) for a PUT request.

o 'name' is the filename supplied as the end of the path of the
  PUT request.

o 'typ' is the MIME type for the request (which may have been guessed
  already from the extension or the body).

o 'body' is the actual payload of the PUT request.

o Return None if no match found.

Definition at line 441 of file _tools.py.

00441 
00442     def findTypeName(name, typ, body):
00443         """ Return the the portal type (an ID) for a PUT request.
00444 
00445         o 'name' is the filename supplied as the end of the path of the
00446           PUT request.
00447 
00448         o 'typ' is the MIME type for the request (which may have been guessed
00449           already from the extension or the body).
00450 
00451         o 'body' is the actual payload of the PUT request.
00452 
00453         o Return None if no match found.
00454         """
00455 
00456 
00457 #
00458 #   Cookie crumbler interfaces.
#

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