@sync_performer
def perform_update_s3_error_page(dispatcher, intent):
 s3 = boto.connect_s3()
 bucket = s3.get_bucket(intent.bucket)
 config = bucket.get_website_configuration_obj()
 new_error_key = intent.error_key
 old_error_key = config.error_key
 if (old_error_key == new_error_key):
  return None
 else:
  config.error_key = new_error_key
  bucket.set_website_configuration(config)
  return old_error_key

@ sync_performer def perform_update_s3_error_page ( dispatcher , intent ) : s3 = boto . connect_s3 ( ) bucket = s3 . get_bucket ( intent . bucket ) config = bucket . get_website_configuration_obj ( ) new_error_key = intent . error_key old_error_key = config . error_key if ( old_error_key == new_error_key ) : return None else : config . error_key = new_error_key bucket . set_website_configuration ( config ) return old_error_key
see :class:updates3errorpage .