Back to index

plone3  3.1.7
Public Member Functions | Private Attributes | Static Private Attributes
CMFEditions.StandardModifiers.OMSubObjectAdapter Class Reference

List of all members.

Public Member Functions

def __init__
def save
def remove

Private Attributes

 _obj
 _name

Static Private Attributes

tuple __implements__ = (IReferenceAdapter, )

Detailed Description

Adapter to an object manager children.

Definition at line 442 of file StandardModifiers.py.


Constructor & Destructor Documentation

Initialize the adapter.

Definition at line 448 of file StandardModifiers.py.

00448 
00449     def __init__(self, obj, name):
00450         """Initialize the adapter.
00451         """
00452         self._obj = obj
00453         self._name = name


Member Function Documentation

def CMFEditions.StandardModifiers.OMSubObjectAdapter.remove (   self,
  permanent = False 
)
See interface

Definition at line 459 of file StandardModifiers.py.

00459 
00460     def remove(self, permanent=False):
00461         """See interface
00462         """
00463         # XXX do we want there is the ``manage_afterDelete`` hook called?
00464         # The decision has to go into the interface documentation.
00465         # IM(alecm)O, we should update the catalog if the change is permanent
00466         # and not if otherwise, this forces this Adapter to know a bit about
00467         # implementation details, but it's an optional arg to a specific
00468         # implemetnation of this interface, so I think this is acceptable.
00469         # The only other option I see is to do the deletion in the
00470         # CopyModifyMerge tool which is aware of the distinction between
00471         # retrieve and revert.
00472         if permanent:
00473             self._obj.manage_delObjects(ids=[self._name])
00474         else:
00475             self._obj._delOb(self._name)
00476 

See interface

Definition at line 454 of file StandardModifiers.py.

00454 
00455     def save(self, dict):
00456         """See interface
00457         """
00458         dict[self._name] = getattr(aq_base(self._obj), self._name)

Here is the caller graph for this function:


Member Data Documentation

tuple CMFEditions.StandardModifiers.OMSubObjectAdapter.__implements__ = (IReferenceAdapter, ) [static, private]

Definition at line 446 of file StandardModifiers.py.

Definition at line 452 of file StandardModifiers.py.

Definition at line 451 of file StandardModifiers.py.


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