Back to index

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

List of all members.

Public Member Functions

def __init__
def getIcon
def getAuthenticatedMember
def isAnonymousUser
def checkPermission
def getTypeInfo
def listTypeInfo
def listContentTypes
def __call__
def getPortalObject
def notifyCreated
def getCatalogVariablesFor

Public Attributes

 anon

Static Public Attributes

string root = 'DummyTool'
 getPortalPath = __call__
 test_notified = None

Static Private Attributes

string _type_id = 'Dummy Content'
tuple _type_actions

Detailed Description

This is a Dummy Tool that behaves as a
a MemberShipTool, a URLTool and an
Action Provider

Definition at line 354 of file dummy.py.


Constructor & Destructor Documentation

def CMFCore.tests.base.dummy.DummyTool.__init__ (   self,
  anon = 1 
)

Definition at line 361 of file dummy.py.

00361 
00362     def __init__(self, anon=1):
00363         self.anon = anon


Member Function Documentation

Definition at line 397 of file dummy.py.

00397 
00398     def __call__(self):
00399         return self.root

Here is the caller graph for this function:

def CMFCore.tests.base.dummy.DummyTool.checkPermission (   self,
  permissionName,
  object,
  subobjectName = None 
)

Definition at line 374 of file dummy.py.

00374 
00375     def checkPermission(self, permissionName, object, subobjectName=None):
00376         return True

Here is the caller graph for this function:

Definition at line 368 of file dummy.py.

00368 
00369     def getAuthenticatedMember(self):
00370         return DummyUser()

Here is the caller graph for this function:

Definition at line 411 of file dummy.py.

00411 
00412     def getCatalogVariablesFor(self, obj):
00413         return {}
00414 

Here is the caller graph for this function:

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

Definition at line 364 of file dummy.py.

00364 
00365     def getIcon( self, relative=0 ):
00366         return 'Tool: %s' % relative

Here is the caller graph for this function:

Definition at line 400 of file dummy.py.

00400 
00401     def getPortalObject(self):
00402         return aq_parent(aq_inner(self))

Here is the caller graph for this function:

def CMFCore.tests.base.dummy.DummyTool.getTypeInfo (   self,
  contentType 
)

Definition at line 383 of file dummy.py.

00383 
00384     def getTypeInfo(self, contentType):
00385         return DummyType(self._type_id, title=self._type_id,
00386                          actions=self._type_actions)

Here is the caller graph for this function:

Definition at line 371 of file dummy.py.

00371 
00372     def isAnonymousUser(self):
00373         return self.anon

Here is the caller graph for this function:

def CMFCore.tests.base.dummy.DummyTool.listContentTypes (   self,
  container = None,
  by_metatype = 0 
)

Definition at line 391 of file dummy.py.

00391 
00392     def listContentTypes(self, container=None, by_metatype=0):
00393         return (self._type_id,)

def CMFCore.tests.base.dummy.DummyTool.listTypeInfo (   self,
  container = None 
)

Definition at line 387 of file dummy.py.

00387 
00388     def listTypeInfo(self, container=None):
00389         return (DummyType(self._type_id, title=self._type_id,
00390                           actions=self._type_actions),)

Here is the caller graph for this function:

Definition at line 408 of file dummy.py.

00408 
00409     def notifyCreated(self, ob):
00410         self.test_notified = ob


Member Data Documentation

Initial value:
(('', 'dummy_view'),
                     ('view', 'dummy_view'),
                     ('(Default)', 'dummy_view'))

Definition at line 379 of file dummy.py.

string CMFCore.tests.base.dummy.DummyTool._type_id = 'Dummy Content' [static, private]

Definition at line 378 of file dummy.py.

Definition at line 362 of file dummy.py.

Definition at line 403 of file dummy.py.

Definition at line 395 of file dummy.py.

Definition at line 406 of file dummy.py.


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