Example #1
0
 def loading(self):
     result = task_result(self.session.get('task_id'))
     if result.ready():
         if result.get() == 'ProcessSucceeded':
             self.session.flash('ESGF logon was successful.', queue='success')
             return self.next('wizard_done')
         else:
             self.session.flash('ESGF logon failed.', queue='danger')
             return HTTPFound(location=self.request.route_path(self.name))
     return {}
Example #2
0
 def check_logon(self):
     status = 'running'
     result = task_result(self.session.get('task_id'))
     if result.ready():
         status = 'ready'
     return dict(status=status)