def require_fully_signed_up(handler):
 def test_registered_as_editor(self, **kwargs):
  'Check that the user has registered as an editor.'
  if ((not self.user_id) or (self.username in config_domain.BANNED_USERNAMES.value) or (not user_services.has_fully_registered(self.user_id))):
   raise self.UnauthorizedUserException('You do not have the credentials to access this page.')
  return handler(self, **kwargs)
 return test_registered_as_editor

def require_fully_signed_up ( handler ) : def test_registered_as_editor ( self , ** kwargs ) : if ( ( not self . user_id ) or ( self . username in config_domain . BANNED_USERNAMES . value ) or ( not user_services . has_fully_registered ( self . user_id ) ) ) : raise self . UnauthorizedUserException ( 'You do not have the credentials to access this page.' ) return handler ( self , ** kwargs ) return test_registered_as_editor
decorator that checks if the user is logged in and has completed the signup process .