Back to index

plone3  3.1.7
Classes | Functions
Archetypes.tests.common Namespace Reference

Classes

class  TestPreconditionFailed

Functions

def mkDummyInContext

Function Documentation

def Archetypes.tests.common.mkDummyInContext (   klass,
  oid,
  context,
  schema = None 
)

Definition at line 20 of file common.py.

00020 
00021 def mkDummyInContext(klass, oid, context, schema=None):
00022     gen_class(klass, schema)
00023     dummy = klass(oid=oid).__of__(context)
00024     setattr(context, oid, dummy)
00025     dummy.initializeArchetype()
00026     return dummy
00027 

Here is the call graph for this function:

Here is the caller graph for this function: