[quills-dev] [Collective-checkins] r32140 - Quills/trunk/skins/Quills
quills-dev at lists.etria.com quills-dev at lists.etria.comSat Oct 21 23:53:51 UTC 2006
- Previous message: [quills-dev] Re: [Collective-checkins] r32139 - Quills/trunk
- Next message: [quills-dev] trackback spam
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: tomster
Date: Sat Oct 21 23:53:50 2006
New Revision: 32140
Modified:
Quills/trunk/skins/Quills/weblog_view.pt
Quills/trunk/skins/Quills/weblogentry_view.pt
Log:
Now that we've got cheap and accurate modification dates for Weblog and WeblogEntry we can set the `Modified-Since`-Header in their respective templates.
Again, once we've migrated the views to Five, we can get rid of the ugly `dummy python:` hack and set the header in the view (just as with the feed templates for instance).
Modified: Quills/trunk/skins/Quills/weblog_view.pt
==============================================================================
--- Quills/trunk/skins/Quills/weblog_view.pt (original)
+++ Quills/trunk/skins/Quills/weblog_view.pt Sat Oct 21 23:53:50 2006
@@ -4,7 +4,9 @@
metal:use-macro="here/main_template/macros/master"
i18n:domain="quills">
- <metal:block fill-slot="head_slot">
+ <metal:block fill-slot="head_slot"
+ tal:define="dummy python:request.RESPONSE.setHeader('Last-Modified', here.getModifiedDate().toZone('GMT').rfc822());"
+ >
<metal:macro use-macro="here/quills_header_macros/macros/feed-links" />
</metal:block>
Modified: Quills/trunk/skins/Quills/weblogentry_view.pt
==============================================================================
--- Quills/trunk/skins/Quills/weblogentry_view.pt (original)
+++ Quills/trunk/skins/Quills/weblogentry_view.pt Sat Oct 21 23:53:50 2006
@@ -6,7 +6,9 @@
metal:use-macro="here/main_template/macros/master"
i18n:domain="quills">
- <metal:block fill-slot="head_slot">
+ <metal:block fill-slot="head_slot"
+ tal:define="dummy python:request.RESPONSE.setHeader('Last-Modified', here.getModifiedDate().toZone('GMT').rfc822());"
+ >
<metal:macro use-macro="here/quills_header_macros/macros/feed-links" />
</metal:block>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Collective-checkins mailing list
Collective-checkins at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/collective-checkins
- Previous message: [quills-dev] Re: [Collective-checkins] r32139 - Quills/trunk
- Next message: [quills-dev] trackback spam
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the quills-dev mailing list