Exemplo n.º 1
0
 def hacker_state(self):
     if self.checked_in:
         return 'checkedin'
     if self.confirmed:
         return "confirmed"
     if not Settings.can_confirm(self.waitlist):
         return "late"
     if self.withdraw:
         return "withdraw"
     if self.waitlist:
         return "waitlist"
     if self.admitted:
         return "admitted"
     if self.declined:
         return "declined"
     if hasattr(self, 'application'):
         return "submitted"
     if not Settings.registration_is_open():
         return "late"
     return "incomplete"
Exemplo n.º 2
0
 def hacker_state(self):
     # If the user submitted an application but didn't pay (i.e. asked for a refund or something)
     if Settings.get().require_payment and not self.payed and hasattr(
             self, 'application'):
         return 'unpaid'
     if self.checked_in:
         return 'checkedin'
     if self.confirmed:
         return "confirmed"
     if not Settings.can_confirm(self.waitlist):
         return "late"
     if self.withdraw:
         return "withdraw"
     if self.waitlist:
         return "waitlist"
     if self.admitted:
         return "admitted"
     if self.declined:
         return "declined"
     if hasattr(self, 'application'):
         return "submitted"
     if not Settings.registration_is_open():
         return "late"
     return "incomplete"