def setCurrentLicense(self, old_lic, old_sig): with request_context_safety(): context['translate'] = lambda x: x if old_lic is None and old_sig is None: removeSupportLicenseInfo() else: setSupportLicenseInfo(old_lic, old_sig)
def installLicense(self, licfile): new_lic, new_sig = readLicenseInfo(licfile) setSupportLicenseInfo(new_lic, new_sig) return
def setCurrentLicense(self, old_lic, old_sig): if old_lic is None and old_sig is None: removeSupportLicenseInfo() else: setSupportLicenseInfo(old_lic, old_sig)
def installLicense(self, licfile): with request_context_safety(): context['translate'] = lambda x: x new_lic, new_sig = readLicenseInfo(licfile) setSupportLicenseInfo(new_lic, new_sig) return
def installLicense(self, licfile): new_lic, new_sig = readLicenseInfo(licfile) setSupportLicenseInfo(new_lic, new_sig)