Package CHEM :: Package Web :: Package cgibin :: Package reaction :: Module PathwayWeb :: Class PathwayWeb
[hide private]
[frames] | no frames]

Class PathwayWeb



            BaseWeb.BaseWeb --+    
                              |    
BaseReactionWeb.BaseReactionWeb --+
                                  |
                                 PathwayWeb

Instance Methods [hide private]
 
__init__(self)
Constructor.
 
action_loadState(self)
First action is to load any pre-existing state
 
action_closeState(self)
Do any cleanup / tear down after everything else finished.
 
action_default(self)
Default action to always render the current state into HTML
 
action_selectReactant(self)
 
action_removeReactant(self)
 
action_selectReagent(self)
 
action_removeReagent(self)
Must be the last reagent, just replace it with a dummy
 
action_generateProduct(self)
Real work here, use the reagent to generate the products
 
action_clearProduct(self)
 
action_copyProduct(self)
 
action_clearPathway(self)
 
renderReactant(self, reactant, reactionStep, openReactant=False)
Return an HTML representation of the reactant SMILES, including any associated links.
 
__renderReagent(self, reagent, reactionStep, reagentOptions)
Return an HTML representation of the reagent.
 
__renderProduct(self, product, reactionStep, warning_level_id)
Return an HTML representation of the product SMILES, including any associated links.
 
__magnifyIcon(self, smiles)
 
__isFinalStep(self, reactionStep)
 
__isLastCompletedStep(self, iReaction, reactionSteps)
 
__readyForProductGeneration(self, reactionStep)
 
__recordUserProgress(self)
The user presumably just successfully completed a problem, record an entry in the database to give them credit.

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

Static Methods [hide private]

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

Class Variables [hide private]
  reactionSteps = <CHEM.DB.rdb.search.NameRxnPatternMatchingMode...
  productWarnings = <CHEM.DB.rdb.search.NameRxnPatternMatchingMo...
  productWarningIds = <CHEM.DB.rdb.search.NameRxnPatternMatching...
  disfavoredProducts = <CHEM.DB.rdb.search.NameRxnPatternMatchin...
  worstProductWarning = -1
  numDepictions = 0
  indirectUse = False
  reagentsById = <CHEM.DB.rdb.search.NameRxnPatternMatchingModel...

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: BaseReactionWeb.BaseReactionWeb.__init__
(inherited documentation)

action_closeState(self)

 
Do any cleanup / tear down after everything else finished. In particular, if any reagent objects were loaded in the initial "loadState", deposite them back into the object cache for future use.

renderReactant(self, reactant, reactionStep, openReactant=False)

 
Return an HTML representation of the reactant SMILES, including any associated links. Also checks if it is a sentinel value (BLANK_SMILES) and render an appropriate placeholder.

__renderReagent(self, reagent, reactionStep, reagentOptions)

 
Return an HTML representation of the reagent. Adjust presentation to "button" form as appropriate, with respective onMouseOver event handlers, etc. Beware, don't adjust the reagent model itself. Since it comes from a cache, that would be non-thread safe

__renderProduct(self, product, reactionStep, warning_level_id)

 
Return an HTML representation of the product SMILES, including any associated links. Also checks if it is a sentinel value (BLANK_SMILES) and render an appropriate placeholder.

Class Variable Details [hide private]

reactionSteps

Value:
None

productWarnings

Value:
None

productWarningIds

Value:
None

disfavoredProducts

Value:
None

reagentsById

Value:
None