def _getAnswer( self): minfo = info.HelperMaKaCInfo.getMaKaCInfoInstance() ak = APIKey(self._avatar) ak.create() if minfo.isAPIPersistentAllowed() and self._enablePersistent: ak.setPersistentAllowed(True) return True
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))
def _getAnswer(self): minfo = info.HelperMaKaCInfo.getMaKaCInfoInstance() ak = APIKey(self._avatar) ak.create() if minfo.isAPIPersistentAllowed() and self._enablePersistent: ak.setPersistentAllowed(True) return True