Package CHEM :: Package Web :: Package cgibin :: Package tools :: Module MoleculeView :: Class MoleculeView
[hide private]
[frames] | no frames]

Class MoleculeView



      BaseWeb.BaseWeb --+    
                        |    
BaseToolsWeb.BaseToolsWeb --+
                            |
                           MoleculeView

Instance Methods [hide private]
 
__init__(self)
Constructor.
 
action_default(self)
Primary execution method.
 
viewLinkHiddenField(self, smiles)
Generate the hidden field HTML to store link information.
 
viewLinkJavaScriptCall(self, formIdentifier="0")
Utility function for other classes to call to generate the javascript link to this page.
 
lastField(self)
Name of teh last hidden field generated

Inherited from BaseWeb.BaseWeb: action_uploadFiles, addHandler, clearHandlers, errorResponse, getTemplateFilename, handleRequest, maintainParams, optionTagsFromField, optionTagsFromList, printTemplate, replaceWhitespace, response, setTemplateFilename

Static Methods [hide private]
 
viewLinkJavaScriptDefinition(cgibinDir="..")
Utility function for other classes to include to generate standard Javascript function to use the respective view links.
 
viewLinkIcon(cgibinDir="..")
cgibinDir: URL for the cgibin directory, to setup the appropriate relative links

Inherited from BaseWeb.BaseWeb: javascriptString, quoteFilepath, quoteSmiles, unquoteSmiles

Class Variables [hide private]
  iLink = 0

Inherited from BaseWeb.BaseWeb: FILE_FIELD_SUFFIX, OPTIONS_FIELD_SUFFIX, OPTION_TAG, SELECT_FIELD_SUFFIX, TEMPLATE_SUFFIX, UPLOAD_FILE_CMD, disableResponse, mForm, mHandlers, mTemplateDict, mTemplateFilename, req, requestData

Method Details [hide private]

__init__(self)
(Constructor)

 
Constructor. Just some initializations such as addition of default mTemplateDict values. Be sure the subclasses call this method in their own __init__!
Overrides: BaseToolsWeb.BaseToolsWeb.__init__
(inherited documentation)

action_default(self)

 
Primary execution method. Produce HTML to render molecule and any other calculated descriptors.

viewLinkHiddenField(self, smiles)

 

Generate the hidden field HTML to store link information.

smiles: SMILES string of molecule to create a link for

viewLinkJavaScriptCall(self, formIdentifier="0")

 
Utility function for other classes to call to generate the javascript link to this page.

formIdentifier: How to identify the form that will contain the links and hidden fields.
    Defaults to forms[0], the first form found in the document.