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
[legend]
Collaboration diagram for CMFCore.tests.base.dummy.DummyObject:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Private Attributes

 _id

Detailed Description

A dummy callable object.
Comes with getIcon and restrictedTraverse
methods.

Definition at line 40 of file dummy.py.


Constructor & Destructor Documentation

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

Definition at line 46 of file dummy.py.

00046 
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 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.DummyObject.getIcon (   self,
  relative = 0 
)

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

Definition at line 62 of file dummy.py.

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

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

Definition at line 47 of file dummy.py.


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