Package svs_demogame :: Module scripts :: Class ScriptHandler
[show private | hide private]
[frames | no frames]

Class ScriptHandler


Method Summary
  __init__(self, hostObject)
  appendScript(self, newScript)
Appends script to end of script history, making it the current script for execution.
  clearScripts(self)
Clears scripts.
  copyScript(self, newScript)
Copies script.
  executeCurrentScript(self)
Executes update method of script.
  executeCurrentScriptMethod(self, methodName, methodArgs)
Executes specified method from current script.
  getCurrentScript(self)
` Returns most recent version of script.
  getName(self)
Returns name for script, this is the automatically generated ScriptHandler.self.scriptModuleName property.
  getRevisionLog(self)
Returns log of script revisions, without code.
  getScriptRevision(self, revNum)
Returns specified version of script.
  isWithinExecutionLimit(self, script, method, limitValue)
Checks that script method has not been performed more times than execution limit allows.
  loadCurrentScript(self)
Loads current script and sets up necessary environment variables.
  __updateExecutionLog(self, script, method)

Method Details

appendScript(self, newScript)

Appends script to end of script history, making it the current script for execution.

NOTE: should perform some kind of verification of newScript object.

clearScripts(self)

Clears scripts.

copyScript(self, newScript)

Copies script.

NOTE: should perform some kind of verification of newScript object.

executeCurrentScript(self)

Executes update method of script.

executeCurrentScriptMethod(self, methodName, methodArgs=None)

Executes specified method from current script.

If the script does not contain this method it is ignored.

getCurrentScript(self)

` Returns most recent version of script.

getName(self)

Returns name for script, this is the automatically generated ScriptHandler.self.scriptModuleName property.

getRevisionLog(self)

Returns log of script revisions, without code.

getScriptRevision(self, revNum=-1)

Returns specified version of script.

isWithinExecutionLimit(self, script, method, limitValue)

Checks that script method has not been performed more times than execution limit allows. Return True if ok to execute, False otherwise.

loadCurrentScript(self)

Loads current script and sets up necessary environment variables.

Generated by Epydoc 2.1 on Thu Oct 20 15:30:26 2005 http://epydoc.sf.net