def confirm_user(user):
 if (user.confirmed_at is not None):
  return False
 user.confirmed_at = datetime.utcnow()
 _datastore.put(user)
 user_confirmed.send(app._get_current_object(), user=user)
 return True

def confirm_user ( user ) : if ( user . confirmed_at is not None ) : return False user . confirmed_at = datetime . utcnow ( ) _datastore . put ( user ) user_confirmed . send ( app . _get_current_object ( ) , user = user ) return True
confirms the specified user .