Trees | Indices | Help |
|
---|
|
Port of Java UpgradeCheck: https://trac.openmicroscopy.org.uk/omero/browser/trunk/components/common/src/ome/system/UpgradeCheck.java
>>> from omero.util.upgrade_check import UpgradeCheck >>> uc = UpgradeCheck("doctest") >>> uc.run() >>> uc.isUpgradeNeeded() False >>> uc.isExceptionThrown() False >>> uc = UpgradeCheck("doctest", version = "0.0.0") >>> uc.run() >>> uc.isUpgradeNeeded() True >>> uc.isExceptionThrown() False >>> >>> uc = UpgradeCheck("doctest", url = "http://some-completely-unknown-host.abcd/") >>> uc.run() >>> uc.isUpgradeNeeded() False >>> uc.isExceptionThrown() True
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
DEFAULT_TIMEOUT = 10* 1000
|
|
|||
Inherited from |
|
: agent := Name of the agent which is accessing the registry. This will be appended to "OMERO." in order to adhere to the registry API. url := Connection information for the upgrade check. None or empty string disables check. Defaults to upgrade.openmicroscopy.org.uk version := Version to check against the returned value. Defaults to current version as specified in omero_version.py. timeout := How long to wait for the HTTP GET
|
If the {@link #url} has been set to null or the empty string, then no upgrade check will be performed (silently). If however the string is an invalid URL, a warning will be printed. This method should <em>never</em> throw an exception. |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Oct 18 13:28:53 2011 | http://epydoc.sourceforge.net |