Back to index

plone3  3.1.7
Classes | Functions | Variables
Archetypes.Registry Namespace Reference

Classes

class  Registry
class  FieldDescription
class  WidgetDescription
class  ValidatorDescription
class  StorageDescription
class  TypeDescription
class  TypeRegistry
class  ValidatorRegistry
class  PropertyMapping

Functions

def getDoc
def findBaseTypes
def registerField
def registerWidget
def registerStorage
def registerValidator

Variables

tuple fieldDescriptionRegistry = Registry(FieldDescription)
 availableFields = fieldDescriptionRegistry.items
tuple widgetDescriptionRegistry = Registry(WidgetDescription)
 availableWidgets = widgetDescriptionRegistry.items
tuple storageDescriptionRegistry = Registry(StorageDescription)
 availableStorages = storageDescriptionRegistry.items
tuple validatorDescriptionRegistry = ValidatorRegistry()
 availableValidators = validatorDescriptionRegistry.items
tuple typeDescriptionRegistry = TypeRegistry()
 availableTypes = typeDescriptionRegistry.items
tuple propertyMapping = PropertyMapping()

Function Documentation

Definition at line 124 of file Registry.py.

00124 
00125 def findBaseTypes(klass):
00126     bases = []
00127     if hasattr(klass, '__bases__'):
00128         for b in klass.__bases__:
00129             if IBaseObject.isImplementedByInstancesOf(b):
00130                 bases.append(className(b))
00131     return bases

Here is the call graph for this function:

Here is the caller graph for this function:

def Archetypes.Registry.getDoc (   klass)

Definition at line 8 of file Registry.py.

00008 
00009 def getDoc(klass):
00010     doc = klass.__doc__ or ''
00011     return doc

def Archetypes.Registry.registerField (   klass,
  kw 
)

Definition at line 165 of file Registry.py.

00165 
00166 def registerField(klass, **kw):
00167     setSecurity(klass, defaultAccess='allow', objectPermission=None)
00168     field = FieldDescription(klass, **kw)
00169     fieldDescriptionRegistry.register(field.id, field)

Here is the call graph for this function:

def Archetypes.Registry.registerStorage (   klass,
  kw 
)

Definition at line 179 of file Registry.py.

00179 
00180 def registerStorage(klass, **kw):
00181     setSecurity(klass, defaultAccess=None, objectPermission=None)
00182     storage = StorageDescription(klass, **kw)
00183     storageDescriptionRegistry.register(storage.id, storage)

Here is the call graph for this function:

Here is the caller graph for this function:

def Archetypes.Registry.registerValidator (   item,
  name = '' 
)

Definition at line 245 of file Registry.py.

00245 
00246 def registerValidator(item, name=''):
00247     name = name or item.name
00248     validatorDescriptionRegistry.register(name, item)

def Archetypes.Registry.registerWidget (   klass,
  kw 
)

Definition at line 172 of file Registry.py.

00172 
00173 def registerWidget(klass, **kw):
00174     setSecurity(klass, defaultAccess='allow', objectPermission=None)
00175     widget = WidgetDescription(klass, **kw)
00176     widgetDescriptionRegistry.register(widget.id, widget)

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Archetypes.Registry.availableFields = fieldDescriptionRegistry.items

Definition at line 164 of file Registry.py.

Archetypes.Registry.availableStorages = storageDescriptionRegistry.items

Definition at line 178 of file Registry.py.

Archetypes.Registry.availableTypes = typeDescriptionRegistry.items

Definition at line 250 of file Registry.py.

Archetypes.Registry.availableValidators = validatorDescriptionRegistry.items

Definition at line 244 of file Registry.py.

Archetypes.Registry.availableWidgets = widgetDescriptionRegistry.items

Definition at line 171 of file Registry.py.

Definition at line 163 of file Registry.py.

Definition at line 273 of file Registry.py.

Definition at line 177 of file Registry.py.

Definition at line 249 of file Registry.py.

Definition at line 243 of file Registry.py.

Definition at line 170 of file Registry.py.