Пример #1
0
def getSystemInformation():
	"""
	Returns some system information,
	regarding the hardware, os, and the application (the server)
	
	@since: 1.0

	@rtype: a dict[string] of string
	@returns: a dict with some supposedly interesting info
	"""
	import platform

	ret = {}
	# Platform
	ret['machine'] = platform.machine()
	ret['node'] = platform.node()
	ret['system'] = platform.system()
	ret['architecture'] = platform.architecture()[0]
	ret['release'] = platform.system()
	ret['python-version'] = platform.python_version()
	# Physical
	# TODO
	# Application (low-level)
	ret['ws-version'] = Versions.getWsVersion()
	ret['xc-version'] = Versions.getXcVersion()
	ret['server-version'] = Versions.getServerVersion()

	return ret
Пример #2
0
def getSystemInformation():
    """
	Returns some system information,
	regarding the hardware, os, and the application (the server)
	
	@since: 1.0

	@rtype: a dict[string] of string
	@returns: a dict with some supposedly interesting info
	"""
    import platform

    ret = {}
    # Platform
    ret['machine'] = platform.machine()
    ret['node'] = platform.node()
    ret['system'] = platform.system()
    ret['architecture'] = platform.architecture()[0]
    ret['release'] = platform.system()
    ret['python-version'] = platform.python_version()
    # Physical
    # TODO
    # Application (low-level)
    ret['ws-version'] = Versions.getWsVersion()
    ret['xc-version'] = Versions.getXcVersion()
    ret['server-version'] = Versions.getServerVersion()

    return ret
Пример #3
0
def getWsVersion():
	"""
	Returns the Ws interface API version.
	
	Format A.B:
	- A += 1 if not backward compatible.
	- B += 1 if enriched API, but still backward compatible.
	
	@rtype: string
	@returns: the Ws API version
	"""
	return Versions.getWsVersion()
Пример #4
0
def getWsVersion():
    """
	Returns the Ws interface API version.
	
	Format A.B:
	- A += 1 if not backward compatible.
	- B += 1 if enriched API, but still backward compatible.
	
	@rtype: string
	@returns: the Ws API version
	"""
    return Versions.getWsVersion()
Пример #5
0
def getVersion():
    ret = "Testerman Server %s" % Versions.getServerVersion() + "\n" + \
       "API versions:\n Ws: %s\n Xc: %s" % (Versions.getWsVersion(), Versions.getXcVersion())
    return ret
Пример #6
0
def getVersion():
	ret = "Testerman Server %s" % Versions.getServerVersion() + "\n" + \
				"API versions:\n Ws: %s\n Xc: %s" % (Versions.getWsVersion(), Versions.getXcVersion())
	return ret