Public Member Functions | |
def | getModuleVersions |
Static class method which returns a dictionary of modules with their versions. | |
def | isModuleInReleases |
Method to determine if a loaded module is in the specified list of root directories. | |
def | extractVersion |
Extract the version string from the CVS keyword string. | |
def | calcDigest |
Calculate the digest for a given file. | |
def | getModuleDigests |
Retrieve digests of all loaded modules. | |
def | getReleaseFromDigest |
Given a root directory extract the release tag. | |
def | logBadMarshalDataMessage |
Message that is logged when an exception occurs during the marshalling of the digest data file. | |
def | verifyModuleDigests |
Compare loaded modules and any additional files against the digest data. | |
def | findVersionSymbol |
Find the __version__ symbol in the file. | |
def | verifyFileDigests |
Verify the files under a root directory against the digest data file. | |
def | collectDigests |
Given a path, collect digests from all files. | |
def | printVersions |
Print module versions to the console. | |
Static Public Attributes | |
tuple | getModuleVersions = staticmethod(getModuleVersions) |
tuple | isModuleInReleases = staticmethod(isModuleInReleases) |
tuple | extractVersion = staticmethod(extractVersion) |
tuple | calcDigest = staticmethod(calcDigest) |
tuple | getModuleDigests = staticmethod(getModuleDigests) |
tuple | getReleaseFromDigest = staticmethod(getReleaseFromDigest) |
tuple | logBadMarshalDataMessage = staticmethod(logBadMarshalDataMessage) |
tuple | verifyModuleDigests = staticmethod(verifyModuleDigests) |
tuple | findVersionSymbol = staticmethod(findVersionSymbol) |
tuple | verifyFileDigests = staticmethod(verifyFileDigests) |
tuple | collectDigests = staticmethod(collectDigests) |
tuple | printVersions = staticmethod(printVersions) |
Contents:
Provides accessor methods to retrieve version information from both the software and hardware. Displays version info from loaded libraries. Used for troubleshooting problems.
Overview:
Each driver on VxWorks side and each module on the client side provides its version number through functions. When the function cmd.getVersions() is called the command server packetizes this information and sends it over the socket to the command client which gets decoded into a tuple. The getModuleVersions() function converts this tuple to a dictionary and adds the python module versions to it.
Usage:
To retrieve version information one can write:
python versions.py or import versions versions.Gversions.getModuleVersions()
Definition at line 32 of file gVersions.py.
|
Calculate the digest for a given file.
Definition at line 137 of file gVersions.py. |
|
Given a path, collect digests from all files.
Definition at line 363 of file gVersions.py. |
|
Extract the version string from the CVS keyword string. if that's what it appears to be. If it doesn't, just return the input.
Definition at line 119 of file gVersions.py. |
|
Find the __version__ symbol in the file.
Definition at line 286 of file gVersions.py. |
|
Retrieve digests of all loaded modules. All modules which do not have __version__ or __file__ attributes are ignored.
Definition at line 156 of file gVersions.py. |
|
Static class method which returns a dictionary of modules with their versions.
Definition at line 35 of file gVersions.py. |
|
Given a root directory extract the release tag. The root directory defaults to LICOS. This method can be used to extract release tag info from sub-system root directories where the digestData file is stored.
Definition at line 179 of file gVersions.py. |
|
Method to determine if a loaded module is in the specified list of root directories.
Definition at line 95 of file gVersions.py. |
|
Message that is logged when an exception occurs during the marshalling of the digest data file.
Definition at line 207 of file gVersions.py. |
|
Print module versions to the console.
Definition at line 421 of file gVersions.py. |
|
Verify the files under a root directory against the digest data file.
Definition at line 321 of file gVersions.py. |
|
Compare loaded modules and any additional files against the digest data.
Definition at line 222 of file gVersions.py. |
|
Definition at line 153 of file gVersions.py. |
|
Definition at line 419 of file gVersions.py. |
|
Definition at line 135 of file gVersions.py. |
|
Definition at line 319 of file gVersions.py. |
|
Definition at line 177 of file gVersions.py. |
|
Definition at line 93 of file gVersions.py. |
|
Definition at line 205 of file gVersions.py. |
|
Definition at line 116 of file gVersions.py. |
|
Definition at line 220 of file gVersions.py. |
|
Definition at line 433 of file gVersions.py. |
|
Definition at line 361 of file gVersions.py. |
|
Definition at line 284 of file gVersions.py. |