Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Private Attributes
Archetypes.Registry.WidgetDescription Class Reference

List of all members.

Public Member Functions

def __init__
def properties

Public Attributes

 id
 klass
 title
 description
 used_for

Static Private Attributes

int __allow_access_to_unprotected_subobjects__ = 1

Detailed Description

Definition at line 81 of file Registry.py.


Constructor & Destructor Documentation

def Archetypes.Registry.WidgetDescription.__init__ (   self,
  klass,
  title = '',
  description = '',
  used_for = () 
)

Definition at line 85 of file Registry.py.

00085 
00086     def __init__(self, klass, title='', description='', used_for=()):
00087         self.id = className(klass)
00088         self.klass = klass
00089         self.title = title or klass.__name__
00090         self.description = description or getDoc(klass)
00091         self.used_for = used_for

Here is the caller graph for this function:


Member Function Documentation

Definition at line 92 of file Registry.py.

00092 
00093     def properties(self):
00094         from Products.Archetypes.Registry import getPropertyType
00095         props = []
00096         for k, v in self.klass._properties.items():
00097             prop = {}
00098             prop['name'] = k
00099             prop['type'] = getPropertyType(k, self.klass)
00100             prop['default'] = str(v)
00101             props.append(prop)
00102 
00103         return props


Member Data Documentation

Definition at line 83 of file Registry.py.

Definition at line 89 of file Registry.py.

Definition at line 86 of file Registry.py.

Definition at line 87 of file Registry.py.

Definition at line 88 of file Registry.py.

Definition at line 90 of file Registry.py.


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