DTML page for showing and editing tests and resources.
Methods
|
|
|
|
FormatFieldValue
|
FormatFieldValue ( self, field )
Return an HTML rendering of the value for field .
|
|
GetBriefClassDescription
|
GetBriefClassDescription ( self )
Return a brief description of the test or resource class.
- returns
- The brief description, formatted as HTML.
|
|
GetClassDescription
|
GetClassDescription ( self )
Return a full description of the test or resource class.
- returns
- The description, formatted as HTML.
|
|
GetTitle
|
GetTitle ( self )
Return the page title for this page.
|
|
MakeDeleteScript
|
MakeDeleteScript ( self )
Make a script to confirm deletion of the test or resource.
- returns
- JavaScript source to handle deletion of the
test or resource.
|
|
MakeEditUrl
|
MakeEditUrl ( self )
Return the URL for editing this item.
|
|
MakeRunUrl
|
MakeRunUrl ( self )
Return the URL for running this item.
|
|
MakeShowUrl
|
MakeShowUrl ( self )
Return the URL for showing this item.
|
|
MakeSubmitUrl
|
MakeSubmitUrl ( self )
Return the URL for submitting edits.
|
|
__init__
|
__init__ (
self,
server,
item,
edit,
new,
type,
field_errors={},
)
Construct a new DTML context.
These parameters are also available in DTML under the same name:
-
server
- The
QMTestServer creating this page.
-
item
- The
TestDescriptor or ResourceDescriptor for the
test being shown.
-
edit
- True for editing the item; false for displaying it
only.
-
new
- True for editing a newly-created item (
edit is then
also true).
-
type
- Either "test" or "resource".
-
field_errors
- A map from field names to corresponding error
messages.
|