Re: [Zope] Q: Howto add Last-modified to the header?
The following line isnŽt working <dtml-call "RESPONSE.setHeader('Last-Modified', '<dtml-var bobobase_modification_time>')">
How can I expand <dtml-var bobobase_modification_time> to a string, that I can pass to the setHeader method call??
<dtml-call "RESPONSE.setHeader('Last-Modified', bobobase_modification_time)"> or <dtml-call "RESPONSE.setHeader('Last-Modified', _.str(bobobase_modification_time))"> Adam Karpierz karpierz@itl.pl
Adam Karpierz wrote:
The following line isn´t working <dtml-call "RESPONSE.setHeader('Last-Modified', '<dtml-var bobobase_modification_time>')">
How can I expand <dtml-var bobobase_modification_time> to a string, that I can pass to the setHeader method call??
<dtml-call "RESPONSE.setHeader('Last-Modified', bobobase_modification_time)"> or <dtml-call "RESPONSE.setHeader('Last-Modified', _.str(bobobase_modification_time))">
That's still won't work, though - it has to be in the appropiate format. Try this: <dtml-call "RESPONSE.setHeader('Last-Modified', bobobase_modification_time().toZone('GMT').rfc822())"> -- Itamar S.T. itamar@maxnm.com
participants (2)
-
Adam Karpierz -
Itamar Shtull-Trauring