Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
CMFCore.tests.base.dummy.DummyFolder Class Reference
Inheritance diagram for CMFCore.tests.base.dummy.DummyFolder:
Inheritance graph
[legend]
Collaboration diagram for CMFCore.tests.base.dummy.DummyFolder:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def getPhysicalPath
def getId
def reindexObjectSecurity
def contentIds
def all_meta_types
def getTypeInfo
def __str__
def __call__
def restrictedTraverse
def getIcon

Public Attributes

 manage_addProduct

Private Member Functions

def _setOb
def _delOb
def _getOb
def _setObject
def _delObject

Private Attributes

 _prefix
 _id

Detailed Description

Dummy Container for testing.

Definition at line 205 of file dummy.py.


Constructor & Destructor Documentation

def CMFCore.tests.base.dummy.DummyFolder.__init__ (   self,
  id = 'dummy',
  fake_product = 0,
  prefix = '' 
)

Definition at line 211 of file dummy.py.

00211 
00212     def __init__( self, id='dummy', fake_product=0, prefix='' ):
00213         self._prefix = prefix
00214         self._id = id
00215 
00216         if fake_product:
00217             self.manage_addProduct = {
00218                                    'FooProduct': DummyFactoryDispatcher(self)}


Member Function Documentation

Definition at line 53 of file dummy.py.

00053 
00054     def __call__(self):
00055         return self._id

Here is the caller graph for this function:

Definition at line 50 of file dummy.py.

00050 
00051     def __str__(self):
00052         return self._id

def CMFCore.tests.base.dummy.DummyFolder._delOb (   self,
  id 
) [private]

Definition at line 222 of file dummy.py.

00222 
00223     def _delOb(self, id):
00224         delattr(self, id)

Here is the caller graph for this function:

def CMFCore.tests.base.dummy.DummyFolder._delObject (   self,
  id 
) [private]

Definition at line 238 of file dummy.py.

00238 
00239     def _delObject(self, id):
00240         object = self._getOb(id)
00241         notify(ObjectWillBeRemovedEvent(object, self, id))
00242         if hasattr(aq_base(object), 'manage_beforeDelete'):
00243             object.manage_beforeDelete(object, self)
00244         self._delOb(id)
00245         notify(ObjectRemovedEvent(object, self, id))
00246         notifyContainerModified(self)

Here is the call graph for this function:

Here is the caller graph for this function:

def CMFCore.tests.base.dummy.DummyFolder._getOb (   self,
  id 
) [private]

Definition at line 225 of file dummy.py.

00225 
00226     def _getOb( self, id ):
00227         return getattr(self, id)

def CMFCore.tests.base.dummy.DummyFolder._setOb (   self,
  id,
  object 
) [private]

Definition at line 219 of file dummy.py.

00219 
00220     def _setOb(self, id, object):
00221         setattr(self, id, object)

Here is the caller graph for this function:

def CMFCore.tests.base.dummy.DummyFolder._setObject (   self,
  id,
  object 
) [private]

Definition at line 228 of file dummy.py.

00228 
00229     def _setObject(self, id, object):
00230         notify(ObjectWillBeAddedEvent(object, self, id))
00231         self._setOb(id, object)
00232         object = self._getOb(id)
00233         if hasattr(aq_base(object), 'manage_afterAdd'):
00234             object.manage_afterAdd(object, self)
00235         notify(ObjectAddedEvent(object, self, id))
00236         notifyContainerModified(self)
00237         return object

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 263 of file dummy.py.

00263 
00264     def all_meta_types(self):
00265         return ({'name': 'Dummy', 'permission': 'addFoo'},)

Definition at line 260 of file dummy.py.

00260 
00261     def contentIds(self):
00262         return ('user_bar',)

def CMFCore.tests.base.dummy.DummyObject.getIcon (   self,
  relative = 0 
) [inherited]

Definition at line 59 of file dummy.py.

00059 
00060     def getIcon( self, relative=0 ):
00061         return 'Site: %s' % relative

Here is the caller graph for this function:

Reimplemented from CMFCore.tests.base.dummy.DummyObject.

Definition at line 254 of file dummy.py.

00254 
00255     def getId(self):
00256         return self._id

Reimplemented in CMFCore.tests.base.dummy.DummySite.

Definition at line 247 of file dummy.py.

00247 
00248     def getPhysicalPath(self):
00249         p = aq_parent(aq_inner(self))
00250         path = (self._id, )
00251         if p is not None:
00252             path = p.getPhysicalPath() + path
00253         return path

Here is the caller graph for this function:

Definition at line 266 of file dummy.py.

00266 
00267     def getTypeInfo(self):
00268         return self.portal_types.getTypeInfo(self)  # Can return None.

Here is the caller graph for this function:

Definition at line 257 of file dummy.py.

00257 
00258     def reindexObjectSecurity(self):
00259         pass

def CMFCore.tests.base.dummy.DummyObject.restrictedTraverse (   self,
  path 
) [inherited]

Definition at line 56 of file dummy.py.

00056 
00057     def restrictedTraverse( self, path ):
00058         return path and getattr( self, path ) or self

Here is the caller graph for this function:


Member Data Documentation

Reimplemented from CMFCore.tests.base.dummy.DummyObject.

Definition at line 213 of file dummy.py.

Definition at line 212 of file dummy.py.

Definition at line 216 of file dummy.py.


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