コード例 #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
ファイル: test_monitoring.py プロジェクト: syllaibr64/LinOTP
 def installLicense(self, licfile):
     new_lic, new_sig = readLicenseInfo(licfile)
     setSupportLicenseInfo(new_lic, new_sig)
     return
コード例 #4
0
ファイル: test_monitoring.py プロジェクト: syllaibr64/LinOTP
 def setCurrentLicense(self, old_lic, old_sig):
     if old_lic is None and old_sig is None:
         removeSupportLicenseInfo()
     else:
         setSupportLicenseInfo(old_lic, old_sig)
コード例 #5
0
 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
コード例 #6
0
 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
コード例 #7
0
ファイル: test_monitoring.py プロジェクト: soitun/LinOTP
 def installLicense(self, licfile):
     new_lic, new_sig = readLicenseInfo(licfile)
     setSupportLicenseInfo(new_lic, new_sig)
コード例 #8
0
ファイル: test_monitoring.py プロジェクト: soitun/LinOTP
 def setCurrentLicense(self, old_lic, old_sig):
     if old_lic is None and old_sig is None:
         removeSupportLicenseInfo()
     else:
         setSupportLicenseInfo(old_lic, old_sig)