Beispiel #1
0
 def do_business(self):
     super(ValidateLoginStatus, self).do_business()
     if self.result is None or self.result.status != self.valid_status:
         self.add_error('ticket', _('Invalid Call'))
         return self.errors
     self.result.status = self.new_status
     login_status = LoginStatus(label=self.new_status)
     self.login_status = login_status
     self.login_status_future = login_status._put_async()
Beispiel #2
0
 def do_business(self):
     super(ChangeLoginStatus, self).do_business()
     self.result.status = self.status
     login_status = LoginStatus(label=self.status)
     self.login_status = login_status
     self.login_status_future = login_status._put_async()
Beispiel #3
0
 def __init__(self, user, site, hook):
     super(CreateLogin, self).__init__()
     self.user = user
     self.site = site
     self.result = Login(hook=hook, status=LOGIN_CALL)
     self.login_status = LoginStatus(label=LOGIN_CALL)