示例#1
0
 def _getAnswer(self):
     minfo = info.HelperMaKaCInfo.getMaKaCInfoInstance()
     ak = APIKey(self._avatar)
     ak.create()
     if minfo.isAPIPersistentAllowed() and self._enablePersistent:
         ak.setPersistentAllowed(True)
     return True
示例#2
0
文件: user.py 项目: jbenito3/indico
 def _getAnswer( self):
     minfo = info.HelperMaKaCInfo.getMaKaCInfoInstance()
     ak = APIKey(self._avatar)
     ak.create()
     if minfo.isAPIPersistentAllowed() and self._enablePersistent:
         ak.setPersistentAllowed(True)
     return True
示例#3
0
文件: api.py 项目: Ictp/indico
 def _process(self):
     ak = self._avatar.getAPIKey()
     if not ak:
         ak = APIKey(self._avatar)
         ak.create()
     else:
         ak.newKey()
         ak.newSignKey()
     self._redirect(urlHandlers.UHUserAPI.getURL(self._avatar))
示例#4
0
 def _process(self):
     ak = self._avatar.getAPIKey()
     if not ak:
         ak = APIKey(self._avatar)
         ak.create()
     else:
         ak.newKey()
         ak.newSignKey()
     self._redirect(urlHandlers.UHUserAPI.getURL(self._avatar))