PyDocs

Nav

Internet Data Handling

ContentManager

Base class for content managers. Provides the standard registry mechanisms to register converters between MIME content and other representations, as well as the get_content and set_content dispatch methods.
Members of ContentManager

a

add_get_handler
Record the function handler as the handler for key.
add_set_handler
Record handler as the function to call when an object of a type matching typekey is passed to set_content().

g

get_content
Look up a handler function based on the mimetype of msg (see next paragraph), call it, passing through all arguments, and return the result of the call.

s

set_content
If the maintype is multipart, raise a TypeError; otherwise look up a handler function based on the type of obj (see next paragraph), call clear_content() on the msg, and call the handler function, pa…
0 Examples
No examples for email.contentmanager/ContentManager.
See Also
No see-alsos for email.contentmanager/ContentManager
0 Notes
No notes for ContentManager