Back to index

plone3  3.1.7
Public Member Functions | Private Attributes | Static Private Attributes
CMFEditions.ArchivistTool.AttributeAdapter Class Reference
Inheritance diagram for CMFEditions.ArchivistTool.AttributeAdapter:
Inheritance graph
Collaboration diagram for CMFEditions.ArchivistTool.AttributeAdapter:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def setAttribute
def getAttribute
def getAttributeName
def getType

Private Attributes


Static Private Attributes

tuple __implements__ = (IAttributeAdapter, )

Detailed Description

Definition at line 89 of file

Constructor & Destructor Documentation

def CMFEditions.ArchivistTool.AttributeAdapter.__init__ (   self,
  type = None 

Definition at line 92 of file

00093     def __init__(self, parent, attr_name, type=None):
00094         self._parent = aq_base(parent)
00095         self._name = attr_name
00096         self._type = type

Member Function Documentation

Definition at line 100 of file

00101     def getAttribute(self):
00102         # The attribute may have been removed by a modifier
00103         return getattr(self._parent, self._name, None)

Definition at line 104 of file

00105     def getAttributeName(self):
00106         return self._name

Definition at line 107 of file

00108     def getType(self):
00109         return self._type

Definition at line 97 of file

00098     def setAttribute(self, obj):
00099         setattr(self._parent, self._name, obj)

Member Data Documentation

tuple CMFEditions.ArchivistTool.AttributeAdapter.__implements__ = (IAttributeAdapter, ) [static, private]

Definition at line 90 of file

Definition at line 94 of file

Definition at line 93 of file

Definition at line 95 of file

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