def datepublisher_response_processor(page, request, response):
 expires = page.publication_end_date
 if (expires is not None):
  delta = (expires - timezone.now())
  delta = int(((delta.days * 86400) + delta.seconds))
  patch_response_headers(response, delta)

def datepublisher_response_processor ( page , request , response ) : expires = page . publication_end_date if ( expires is not None ) : delta = ( expires - timezone . now ( ) ) delta = int ( ( ( delta . days * 86400 ) + delta . seconds ) ) patch_response_headers ( response , delta )
this response processor is automatically added when the datepublisher extension is registered .