Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
Archetypes.Marshall.NonLoweringMessage Class Reference
Inheritance diagram for Archetypes.Marshall.NonLoweringMessage:
Inheritance graph
Collaboration diagram for Archetypes.Marshall.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 28 of file

Member Function Documentation

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

Definition at line 45 of file

00046     def getheader(self, name, default=None):
00047         """Get the header value for a name.
00048         """
00049         try:
00050             return self.dict[name]
00051             # return self.dict[name.lower()]
00052         except KeyError:
            return default
Determine whether a given line is a legal header.

Definition at line 35 of file

00036     def isheader(self, line):
00037         """Determine whether a given line is a legal header.
00038         """
00039         i = line.find(':')
00040         if i > 0:
00041             return line[:i]
00042             #return line[:i].lower()
00043         else:
00044             return None        

Member Data Documentation

Definition at line 53 of file

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