Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
Marshall.handlers.rfc822header.NonLoweringMessage Class Reference
Inheritance diagram for Marshall.handlers.rfc822header.NonLoweringMessage:
Inheritance graph
Collaboration diagram for Marshall.handlers.rfc822header.NonLoweringMessage:
Collaboration graph

List of all members.

Public Member Functions

def isheader
def getheader

Static Public Attributes

 get = getheader

Detailed Description

A RFC 822 Message class that doesn't lower header names

IMPORTANT: Only a small subset of the available methods aren't lowering the
           header names!

Definition at line 65 of file

Member Function Documentation

def Marshall.handlers.rfc822header.NonLoweringMessage.getheader (   self,
  default = None 
Get the header value for a name.

Definition at line 82 of file

00083     def getheader(self, name, default=None):
00084         """Get the header value for a name.
00085         """
00086         try:
00087             return self.dict[name]
00088             # return self.dict[name.lower()]
00089         except KeyError:
            return default
Determine whether a given line is a legal header.

Definition at line 72 of file

00073     def isheader(self, line):
00074         """Determine whether a given line is a legal header.
00075         """
00076         i = line.find(':')
00077         if i > 0:
00078             return line[:i]
00079             #return line[:i].lower()
00080         else:
00081             return None        

Member Data Documentation

Definition at line 90 of file

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