2 May
2001
2 May
'01
2:02 p.m.
the constructor of images and files looks like this: def __init__(self, id, title, file, content_type='', precondition='')
the optional precondition can take the id of a method which is called when the image/file is published, e.g. its index_html methods gets called. You only have to make a method in the acquisition path wich reads this (in dtml) <dtml-call "RESPONSE.setHeader('expires',_.DateTime()-1.0)"> <dtml-return "''">
Value of the expiring date needs to be according to RFC1322 standard, but rfc822() attribute of DateTime will do just fine. And time must be converted to GMT+0. Thanks, Sven