示例#1
0
 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)
示例#2
0
 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)
示例#3
0
 def setCurrentLicense(self, old_lic, old_sig):
     if old_lic is None and old_sig is None:
         removeSupportLicenseInfo()
     else:
         setSupportLicenseInfo(old_lic, old_sig)
示例#4
0
 def setCurrentLicense(self, old_lic, old_sig):
     if old_lic is None and old_sig is None:
         removeSupportLicenseInfo()
     else:
         setSupportLicenseInfo(old_lic, old_sig)