Back to index

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

List of all members.

Public Member Functions

def __init__
def __str__
def __call__
def restrictedTraverse
def getIcon
def getId

Private Attributes


Detailed Description

A dummy callable object.
Comes with getIcon and restrictedTraverse

Definition at line 40 of file

Constructor & Destructor Documentation

def CMFCore.tests.base.dummy.DummyObject.__init__ (   self,
  id = 'dummy',

Definition at line 46 of file

00047     def __init__(self, id='dummy',**kw):
00048         self._id = id
00049         self.__dict__.update( kw )

Member Function Documentation

Definition at line 53 of file

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

Here is the caller graph for this function:

Definition at line 50 of file

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

def CMFCore.tests.base.dummy.DummyObject.getIcon (   self,
  relative = 0 

Definition at line 59 of file

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

Here is the caller graph for this function:

Reimplemented in CMFCore.tests.base.dummy.DummyFolder.

Definition at line 62 of file

00063     def getId(self):
00064         return self._id

Definition at line 56 of file

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 in CMFCore.tests.base.dummy.DummyFolder, and CMFCore.tests.base.dummy.DummyType.

Definition at line 47 of file

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