Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
Marshall.registry.Registry Class Reference
Inheritance diagram for Marshall.registry.Registry:
Inheritance graph
Collaboration diagram for Marshall.registry.Registry:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def all_meta_types
def getMarshallersFor

Public Attributes


Static Public Attributes

string meta_type = 'Marshaller Registry'
 id = TOOL_ID
tuple security = ClassSecurityInfo()

Detailed Description

A registry that holds predicates and applies them to
objects in the hope of selecting the right one that matches
a given set of constraints.

Definition at line 67 of file

Constructor & Destructor Documentation

def Marshall.registry.Registry.__init__ (   self,
  id = '',
  title = '' 

Definition at line 77 of file

00078     def __init__(self, id='', title=''):
00079         OrderedFolder.__init__(self,
00080         self.title = title or self.meta_type

Member Function Documentation

Definition at line 81 of file

00082     def all_meta_types(self):
00083         return OrderedFolder.all_meta_types(self, interfaces=(IPredicate,))

def Marshall.registry.Registry.getMarshallersFor (   self,

Definition at line 85 of file

00086     def getMarshallersFor(self, obj, **kw):
00087         set = []
00088         for predicate in self.objectValues():
00089             # An OrderedSet, in the lack of a real one.
00090             # The order in which predicates are evaluated
00091             # is managed by the underlying OrderedFolder impl.
00092             [set.append(s) for s in predicate.apply(obj, **kw)
00093              if s not in set]
00094         return tuple(set)
00096 InitializeClass(Registry)

Here is the call graph for this function:

Member Data Documentation = TOOL_ID [static]

Definition at line 74 of file

string Marshall.registry.Registry.meta_type = 'Marshaller Registry' [static]

Definition at line 73 of file

tuple = ClassSecurityInfo() [static]

Definition at line 75 of file

Definition at line 79 of file

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