Back to index

plone3  3.1.7
Classes | Functions | Variables
CMFPlone.tests.dummy Namespace Reference

Classes

class  Dummy
class  Item
class  SizedItem
class  FieldStorage
class  File
class  Image
class  Folder
class  NonStructuralFolder
class  Error
class  Raiser
class  DefaultPage
class  ImageComputedProps
class  IDummyUtility
class  DummyUtility
class  ICantBeDeleted
class  DummyContent
class  DummyWorkflowTool

Functions

def disallow_delete_handler
def DummyWorkflowChainAdapter

Variables

tuple PACKAGE_HOME = package_home(GLOBALS)
string TEXT = 'file data'
string UTEXT = u'file data'
tuple GIF = open(os.path.join(PACKAGE_HOME, os.pardir, 'tool.gif'))

Class Documentation

class CMFPlone::tests::dummy::Error
Dummy exception

Definition at line 125 of file dummy.py.


Function Documentation

Definition at line 194 of file dummy.py.

00194 
00195 def disallow_delete_handler(obj, event):
00196     obj.delete_attempted = True
00197     raise Exception, "You can't delete this!"
00198 

def CMFPlone.tests.dummy.DummyWorkflowChainAdapter (   context,
  tool 
)
A dummy adapter to IWorkflowChain

Definition at line 219 of file dummy.py.

00219 
00220 def DummyWorkflowChainAdapter(context, tool):
00221     """A dummy adapter to IWorkflowChain"""
00222     return ('Static Workflow',)

Variable Documentation

tuple CMFPlone.tests.dummy.GIF = open(os.path.join(PACKAGE_HOME, os.pardir, 'tool.gif'))

Definition at line 26 of file dummy.py.

Definition at line 22 of file dummy.py.

string CMFPlone.tests.dummy.TEXT = 'file data'

Definition at line 24 of file dummy.py.

string CMFPlone.tests.dummy.UTEXT = u'file data'

Definition at line 25 of file dummy.py.