Home | Trees | Index | Help |
---|
|
ItemDescriptor --+ | ResourceDescriptor
|
|||
__init__(self,
database,
resource_id,
resource_class_name=None,
arguments=None,
resource=None)
Create a new resource instance. |
|||
GetClass(self)
Return the class of the entity. |
|||
GetResource(self)
Return the 'Resource' object described by this descriptor. |
|||
SetUp(self,
context,
result)
Set up the resource. |
|||
CleanUp(self,
result)
Clean up the resource. |
|||
Inherited from Inherited from |
|
Create a new resource instance. 'database' -- The 'Database' containing this resource. 'resource_id' -- The resource ID. 'resource_class_name' -- The name of the resource class of which this is an instance. Omit this argument if 'resource' is provided. 'arguments' -- This resource's arguments to the resource class. Omit this argument if 'resource' is provided. 'resource' -- The resource class of which this is an instance.
|
Return the class of the entity. returns -- The Python class object for the entity. For example, for a 'TestDescriptor', this method returns the test class.
|
|
Set up the resource. 'context' -- The 'Context' in which the resource should be executed. 'result' -- The 'Result' object for this resource. |
Clean up the resource. 'result' -- The 'Result' object for this resource. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 3.0alpha2 on Fri Sep 28 00:57:33 2007 | http://epydoc.sf.net |