self.bt.getregKeyExists( "HKEY_LOCAL_MACHINE\\Software\\America
Online\\AIM")
except:
sys.exc_value
...
The following table describes the BasicTests API.
Table 16: BasicTests API
The BasicTests API accesses these functions with the SABase self.bt member. All methods throw
an exception that should be caught if an unexpected error occurs.
Return Value
Boolean
integer
Dict
Boolean
Sentriant AG Software Users Guide, Version 5.2
import sys
returnHash["status_code"] = 0
returnHash["result_code"] = "unknown_error"
returnHash["result_message"] = sys.exc_type,
Public Method
checkHotfixSp(nt=0, win2k=0, xp=0, win2003=0, vista=0)
It checks for the servicepack installed.
Returns the following:
•
true if Service pack installed is lower than argument.
•
false if Service Pack installed is grater that or equal to
argument.
compareVersions(versionValue1, versionValue2)
Returns the following:
•
-1, if value1 is lesser than value2.
•
1, if value1 is higher than value2.
•
0, both are equal.
copyHash(self,fromHash,toHash,debug=0):
Copies the contents of "fromHash" to "toHash".
getBestMacEntry(os, bogusMacList=[], debug=0)
getBizTalkServerExists()
Checks for Biz Talk Server on the machine. Returns the
following:
•
True, if installed
•
None, if not installed
System Administration
379