Package omeroweb :: Package webadmin :: Module webadmin_utils
[hide private]
[frames] | no frames]

Module webadmin_utils

source code

Functions [hide private]
 
getGuestConnection(host, port) source code
 
_checkVersion(host, port) source code
 
_isServerOn(host, port) source code
 
upgradeCheck() source code
 
toBoolean(val)
Get the boolean value of the provided input.
source code
Variables [hide private]
  logger = logging.getLogger('admin-utils')

Imports: logging, traceback, re, omero_version, OmeroWebGateway, _createConnection


Function Details [hide private]

toBoolean(val)

source code 

Get the boolean value of the provided input.

    If the value is a boolean return the value.
    Otherwise check to see if the value is in 
    ["false", "f", "no", "n", "none", "0", "[]", "{}", "" ]
    and returns True if value is not in the list