Exemplo n.º 1
0
def checkSoftwareVersion():
	softwareInfo = softwareManager.checkSoftwareVersion()

	if softwareInfo:
		return jsonify(softwareInfo);
	else:
		return ("There was an error checking for new software.", 400)
Exemplo n.º 2
0
def checkSoftwareVersion():
    softwareInfo = softwareManager.checkSoftwareVersion()

    if softwareInfo:
        return jsonify(softwareInfo)
    else:
        return ("There was an error checking for new software.", 400)
Exemplo n.º 3
0
def checkSoftwareVersion():
    softwareInfo = softwareManager.checkSoftwareVersion()

    if softwareInfo:
        s = settings()
        s.set(["software", "lastCheck"], time.time())
        s.save()
        return jsonify(softwareInfo)
    else:
        return ("There was an error checking for new software.", 400)
Exemplo n.º 4
0
	def checkSoftwareVersion(self,data,sendResponse):
		softwareInfo = softwareManager.checkSoftwareVersion()

		if softwareInfo:
			s = settings()
			s.set(["software", "lastCheck"], time.time())
			s.save()
			sendResponse(softwareInfo)
		else:
			sendResponse("error_checking_update",True)
Exemplo n.º 5
0
def checkSoftwareVersion():
	softwareInfo = softwareManager.checkSoftwareVersion()

	if softwareInfo:
		s = settings()
		s.set(["software", "lastCheck"], time.time())
		s.save()
		return jsonify(softwareInfo);
	else:
		return ("There was an error checking for new software.", 400)