Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Private Member Functions
CMFFormController.Key.Key Class Reference

List of all members.

Public Member Functions

def __init__
def __cmp__
def getKey
def __hash__
def __eq__

Static Public Attributes

 key = None

Private Member Functions

def _compare

Detailed Description

Definition at line 3 of file Key.py.


Constructor & Destructor Documentation

def CMFFormController.Key.Key.__init__ (   self,
  key 
)

Definition at line 6 of file Key.py.

00006 
00007     def __init__(self, key):
00008         self.key = key


Member Function Documentation

def CMFFormController.Key.Key.__cmp__ (   self,
  k 
)

Definition at line 9 of file Key.py.

00009 
00010     def __cmp__(self, k):
00011         keylen = len(self.key)
00012         for i in range(0, keylen-1):
00013             if self.key[i] != k.key[i]:
00014                 return self._compare(self.key[i], k.key[i])
00015         return self._compare(self.key[keylen-1], k.key[keylen-1])

Here is the call graph for this function:

def CMFFormController.Key.Key.__eq__ (   self,
  k 
)

Definition at line 32 of file Key.py.

00032 
00033     def __eq__(self, k):
00034         return self.key == k.key

Definition at line 29 of file Key.py.

00029 
00030     def __hash__(self):
00031         return hash(self.key)

def CMFFormController.Key.Key._compare (   self,
  k1,
  k2 
) [private]

Definition at line 16 of file Key.py.

00016 
00017     def _compare(self, k1, k2):
00018         # make None end up last
00019         if k1 == None:
00020             if k2 == None:
00021                 return 0
00022             return 1
00023         if k2 == None:
00024             return -1
00025         return cmp(k1, k2)

Here is the caller graph for this function:

Definition at line 26 of file Key.py.

00026 
00027     def getKey(self):
00028         return self.key


Member Data Documentation

Definition at line 4 of file Key.py.


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