Package qm :: Package test :: Package web :: Module web :: Class NewItemPage
[hide private]
[frames] | no frames]

Class NewItemPage

source code

web.DtmlPage --+        
               |        
 DefaultDtmlPage --+    
                   |    
          QMTestPage --+
                       |
                      NewItemPage

Page for creating a new test or resource.

Nested Classes [hide private]

Inherited from web.DtmlPage: default_class

Instance Methods [hide private]
 
__init__(self, server, type, item_id="", class_name="", field_errors={})
Create a new DTML context.
source code
 
GetTitle(self)
Return the title this page.
source code
 
GetClassDescriptions(self)
Return a description of the available classes.
source code
 
MakeSubmitUrl(self)
Return the URL for submitting the form.
source code

Inherited from QMTestPage: GenerateHtmlHeader, GenerateStartBody, GetExpectationUrl, GetRefreshDelay, IsFinished

Inherited from DefaultDtmlPage: FormatId, GetDatabase, GetMainPageUrl, GetName, GetOutcomePercentages, GetResultsByOutcome, HasModifiableExpectations, IsLabelInDirectory, MakeListingUrl

Inherited from web.DtmlPage: GenerateEndBody, GenerateEndScript, GenerateStartScript, GenerateXMLHeader, GetProgramName, MakeButton, MakeImageUrl, MakeLoginForm, MakeRule, MakeSpacer, UserIsInGroup, WebRequest, __call__

Class Variables [hide private]

Inherited from DefaultDtmlPage: EXPECTATION_KINDS, EXPECTED, NEGATIVE_UNEXPECTED, POSITIVE_UNEXPECTED, html_generator, outcomes

Inherited from web.DtmlPage: common_javascript, html_stylesheet, qm_bug_system_url, web

Method Details [hide private]

__init__(self, server, type, item_id="", class_name="", field_errors={})
(Constructor)

source code 

Create a new DTML context.

'type' -- Either "test" or "resource".

'server' -- The 'QMTestServer' creating this page.

'item_id' -- The item ID to show.

'class_name' -- The class name to show.

'field_errors' -- A mapping of error messages for fields. Keys may be "_id" or "_class".

Overrides: web.DtmlPage.__init__

GetClassDescriptions(self)

source code 

Return a description of the available classes.

returns -- Structured text describing each of the available test or resource classes.

MakeSubmitUrl(self)

source code 

Return the URL for submitting the form.

The URL is for the script 'create-test' or 'create-resource' as appropriate.