Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Private Member Functions
CMFCore.tests.test_OpaqueItems.DummyContent Class Reference

List of all members.

Public Member Functions

def __init__
def isNotifiedByAfterAdd
def isNotifiedByAfterClone
def isNotifiedByBeforeDelete

Public Attributes

 opaqueItem
 opaqueItemsId

Private Member Functions

def _getCopy

Detailed Description

A Dummy piece of PortalContent with additional attributes

Definition at line 51 of file test_OpaqueItems.py.


Constructor & Destructor Documentation

def CMFCore.tests.test_OpaqueItems.DummyContent.__init__ (   self,
  id = 'dummy',
  opaqueItem = None,
  args,
  kw 
)

Definition at line 57 of file test_OpaqueItems.py.

00057 
00058     def __init__(self, id='dummy', opaqueItem=None, *args, **kw):
00059         OriginalDummyContent.__init__(self, id, *args, **kw)
00060         if opaqueItem is None:
00061             self.opaqueItem = 'noncallable'
00062             self.opaqueItemsId = 'opaqueItem'
00063         elif isinstance(opaqueItem, basestring):
00064             Hooks(self, opaqueItem)
00065             self.opaqueItemsId = opaqueItem
00066         else:
00067             opaqueItem(self, 'opaqueItem')
00068             self.opaqueItemsId = 'opaqueItem'


Member Function Documentation

def CMFCore.tests.test_OpaqueItems.DummyContent._getCopy (   self,
  container 
) [private]

Definition at line 70 of file test_OpaqueItems.py.

00070 
00071     def _getCopy(self, container):
00072         obj = DummyContent(self.id, catalog=self.catalog)
00073         setattr(obj, self.opaqueItemsId, getattr(self, self.opaqueItemsId))
00074         return obj

Here is the call graph for this function:

Definition at line 75 of file test_OpaqueItems.py.

00075 
00076     def isNotifiedByAfterAdd(self):
00077         return getattr(getattr(self, self.opaqueItemsId), 'addCount', None)

Definition at line 78 of file test_OpaqueItems.py.

00078 
00079     def isNotifiedByAfterClone(self):
00080         return getattr(getattr(self, self.opaqueItemsId), 'cloneCount', None)

Definition at line 81 of file test_OpaqueItems.py.

00081 
00082     def isNotifiedByBeforeDelete(self):
00083         return getattr(getattr(self, self.opaqueItemsId), 'deleteCount', None)
00084 


Member Data Documentation

Definition at line 60 of file test_OpaqueItems.py.

Definition at line 61 of file test_OpaqueItems.py.


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