Back to index

plone3  3.1.7
Classes | Functions | Variables
Marshall.registry Namespace Reference

Classes

class  RegistryItem
class  Registry

Functions

def registerComponent
def getRegisteredComponents
def getComponent
def registerPredicate
def getRegisteredPredicates
def createPredicate
def manage_addRegistry

Variables

dictionary comp_registry = {}
dictionary registry = {}

Function Documentation

def Marshall.registry.createPredicate (   name,
  id,
  title,
  expression,
  component_name 
)

Definition at line 64 of file registry.py.

00064 
00065 def createPredicate(name, id, title, expression, component_name):
00066     return registry[name].create(id, title, expression, component_name)

Here is the caller graph for this function:

Definition at line 53 of file registry.py.

00053 
00054 def getComponent(name):
00055     return comp_registry[name].factory()

Here is the caller graph for this function:

Definition at line 50 of file registry.py.

00050 
00051 def getRegisteredComponents():
00052     return [item.info() for item in comp_registry.values()]

Here is the caller graph for this function:

Definition at line 61 of file registry.py.

00061 
00062 def getRegisteredPredicates():
00063     return [item.info() for item in registry.values()]

Here is the caller graph for this function:

def Marshall.registry.manage_addRegistry (   self,
  REQUEST = None,
  ignored 
)
Factory method that creates a Registry

Definition at line 97 of file registry.py.

00097 
00098 def manage_addRegistry(self, REQUEST=None, **ignored):
00099     """ Factory method that creates a Registry"""
00100     obj = Registry()
00101     self._setObject(obj.id, obj)
00102 
00103     if REQUEST is not None:
00104         REQUEST['RESPONSE'].redirect(self.absolute_url()+'/manage_main')
00105     else:
00106         return self._getOb(obj.id)
def Marshall.registry.registerComponent (   name,
  title,
  component 
)

Definition at line 47 of file registry.py.

00047 
00048 def registerComponent(name, title, component):
00049     comp_registry[name] = RegistryItem(name, title, component)

def Marshall.registry.registerPredicate (   name,
  title,
  component 
)

Definition at line 57 of file registry.py.

00057 
00058 def registerPredicate(name, title, component):
00059     component.predicate_type = title
00060     registry[name] = RegistryItem(name, title, component)

Here is the caller graph for this function:


Variable Documentation

Definition at line 46 of file registry.py.

dictionary Marshall.registry.registry = {}

Definition at line 56 of file registry.py.