def validate_embargo_end_date(end_date_string, node):
 end_date = parse_date(end_date_string, ignoretz=True).replace(tzinfo=pytz.utc)
 today = timezone.now()
 if ((end_date - today) <= settings.DRAFT_REGISTRATION_APPROVAL_PERIOD):
  raise HTTPError(http.BAD_REQUEST, data={'message_short': 'Invalid embargo end date', 'message_long': 'Embargo end date for this submission must be at least {0} days in the future.'.format(settings.DRAFT_REGISTRATION_APPROVAL_PERIOD)})
 elif (not node._is_embargo_date_valid(end_date)):
  max_end_date = (today + settings.DRAFT_REGISTRATION_APPROVAL_PERIOD)
  raise HTTPError(http.BAD_REQUEST, data={'message_short': 'Invalid embargo end date', 'message_long': 'Embargo end date must on or before {0}.'.format(max_end_date.isoformat())})

def validate_embargo_end_date ( end_date_string , node ) : end_date = parse_date ( end_date_string , ignoretz = True ) . replace ( tzinfo = pytz . utc ) today = timezone . now ( ) if ( ( end_date - today ) <= settings . DRAFT_REGISTRATION_APPROVAL_PERIOD ) : raise HTTPError ( http . BAD_REQUEST , data = { 'message_short' : 'Invalid embargo end date' , 'message_long' : 'Embargo end date for this submission must be at least {0} days in the future.' . format ( settings . DRAFT_REGISTRATION_APPROVAL_PERIOD ) } ) elif ( not node . _is_embargo_date_valid ( end_date ) ) : max_end_date = ( today + settings . DRAFT_REGISTRATION_APPROVAL_PERIOD ) raise HTTPError ( http . BAD_REQUEST , data = { 'message_short' : 'Invalid embargo end date' , 'message_long' : 'Embargo end date must on or before {0}.' . format ( max_end_date . isoformat ( ) ) } )
our reviewers have a window of time in which to review a draft reg .