Example #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
Example #2
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))
Example #3
0
File: api.py Project: 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))
Example #4
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