|
|
|
addHandler(self,
commandName,
methodName)
Tells this controller class to look for requests that include a
form field named 'commandName.' If found, the handleRequest method
will invoke the method named 'methodName' on this instance. |
|
|
|
|
|
handleRequest(self,
form=None,
req=None)
Primary execution method, finds an appropriate command method to
execute based on the contents of the form which is an instance of
cgi.FieldStorage. |
|
|
|
__handleRequest(self,
form=None,
req=None)
Private version that does most of the work. |
|
|
|
maintainParams(self)
Normal behavior, store all request parameters back into the
templateDict for maintenance across page views. |
|
|
|
errorResponse(self,
exc)
If an Exception (exc) was thrown during the request handling
process, respond to the client with this method instead of the
standard response method. |
|
|
|
response(self)
Deliver response after a handleRequest. |
|
|
|
|
|
setTemplateFilename(self,
filename) |
|
|
|
getTemplateFilename(self)
If template filename has been manually set by user, then just
return that. |
|
|
|
optionTagsFromList(self,
valueList,
textList,
selectedValue=None)
Generate and return the HTML <option
value="%value">%text</option> tags for a given
list of values and respective text labels. |
|
|
|
optionTagsFromField(self,
fieldname,
selected=None)
Shorthand for optionTagsFromList with default options and selected
value. |
|
|
|
action_uploadFiles(self)
Look for all fields whose name ends with file suffix
"File" and loads those file contents into the field
respectively named by that field's prefix. |
|
|
|
replaceWhitespace(self,
value)
Look for specific whitespace description sequences and replace
them with the real special characters. |
|
|
|
UPLOAD_FILE_CMD = "uploadFiles"
|
|
FILE_FIELD_SUFFIX = "File"
Standard suffix expected for corresponding web templates
|
|
TEMPLATE_SUFFIX = ".htm"
Format string for option tags
|
|
OPTION_TAG = '<option value="%(value)s"%(selected)s>%(text)s</...
|
|
SELECT_FIELD_SUFFIX = "Select"
|
|
OPTIONS_FIELD_SUFFIX = "Options"
|
|
mHandlers = <CHEM.DB.rdb.search.NameRxnPatternMatchingModel.Se...
|
|
mForm = <CHEM.DB.rdb.search.NameRxnPatternMatchingModel.Search...
|
|
mTemplateDict = <CHEM.DB.rdb.search.NameRxnPatternMatchingMode...
|
|
mTemplateFilename = <CHEM.DB.rdb.search.NameRxnPatternMatching...
|
|
requestData = <CHEM.DB.rdb.search.NameRxnPatternMatchingModel....
|
|
req = <CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSe...
|
|
disableResponse = False
|