Exemplo n.º 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
Exemplo n.º 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))