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
[legend]
Collaboration diagram for CMFEditions.ArchivistTool.AttributeAdapter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def setAttribute
def getAttribute
def getAttributeName
def getType

Private Attributes

 _parent
 _name
 _type

Static Private Attributes

tuple __implements__ = (IAttributeAdapter, )

Detailed Description

Definition at line 89 of file ArchivistTool.py.


Constructor & Destructor Documentation

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

Definition at line 92 of file ArchivistTool.py.

00092 
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 ArchivistTool.py.

00100 
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 ArchivistTool.py.

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

Definition at line 107 of file ArchivistTool.py.

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

Definition at line 97 of file ArchivistTool.py.

00097 
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 ArchivistTool.py.

Definition at line 94 of file ArchivistTool.py.

Definition at line 93 of file ArchivistTool.py.

Definition at line 95 of file ArchivistTool.py.


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