Back to index

plone3  3.1.7
Public Member Functions
Archetypes.Registry.TypeRegistry Class Reference

List of all members.

Public Member Functions

def __init__
def items
def keys
def values
def __getitem__
def get

Detailed Description

Definition at line 184 of file Registry.py.


Constructor & Destructor Documentation

Definition at line 186 of file Registry.py.

00186 
00187     def __init__(self):
00188         pass

Here is the caller graph for this function:


Member Function Documentation

Definition at line 205 of file Registry.py.

00205 
00206     def __getitem__(self, name):
00207         items = self.items()
00208         for k, v in items:
00209             if k == name:
00210                 return v
00211         raise KeyError, name

Here is the call graph for this function:

Here is the caller graph for this function:

def Archetypes.Registry.TypeRegistry.get (   self,
  name,
  default = None 
)

Definition at line 212 of file Registry.py.

00212 
00213     def get(self, name, default=None):
00214         items = self.items()
00215         for k, v in items:
00216             if k == name:
00217                 return v
00218         return default

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 189 of file Registry.py.

00189 
00190     def items(self):
00191         return [(className(t['klass']),
00192                  TypeDescription(t['klass'],
00193                                  title=t['name'],
00194                                  package=t['package'],
00195                                  module=t['module'],
00196                                  )
00197                  )
00198                  for t in listTypes()]

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 199 of file Registry.py.

00199 
00200     def keys(self):
00201         return [k for k, v in self.items()]

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 202 of file Registry.py.

00202 
00203     def values(self):
00204         return [v for k, v in self.items()]

Here is the call graph for this function:

Here is the caller graph for this function:


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