Bases: object
Class of objects used to obtain the current version of an application from the deployment server. A sub process is started to read the URL associated with the version number. The version number is written on file locally before the reading process ends, then read when the version number is requested.
The reading of the URL is put in a separate process so that it doesn’t affect the performance of the application and can be managed and stopped at any time.
alias of type
x.__delattr__(‘name’) <==> del x.name
x.__getattribute__(‘name’) <==> x.name
x.__hash__() <==> hash(x)
Start the sub-process used to read the version URL
helper for pickle
helper for pickle
x.__repr__() <==> repr(x)
x.__setattr__(‘name’, value) <==> x.name = value
x.__str__() <==> str(x)
list of weak references to the object (if defined)
Returns the last version number that was read from the server.
Method used to poll the reading process. The process will be killed if the wait time is longer than a predefined maximum. This method should always be called before get_version() to ensure accuracy of the version number that is returned.
Bases: threading.Thread
Thread used to start the process of reading the current version of an application from the deployment server.
The VersionChecker is user in a Thread to allow the main application to continue dealing with UI requests from the user. The main application provides a call-back method for when the version number is obtained.
Remove current thread from the dict of currently running threads.
exc_info() -> (type, value, traceback)
Return information about the most recent exception caught by an except clause in the current stack frame or in an older stack frame.
alias of type
x.__delattr__(‘name’) <==> del x.name
x.__getattribute__(‘name’) <==> x.name
x.__hash__() <==> hash(x)
helper for pickle
helper for pickle
x.__setattr__(‘name’, value) <==> x.name = value
x.__str__() <==> str(x)
list of weak references to the object (if defined)
Execute the process of reading the current application version number.
Method executed in the independent process used to read the current version number from the server.
Parameters: | url – URL to read the version number from |
---|
Store the version number This could be put into a DB if the application has one.