[quills-dev] [Collective-checkins] r32135 - Quills/trunk
quills-dev at lists.etria.com quills-dev at lists.etria.comSat Oct 21 22:34:19 UTC 2006
- Previous message: [quills-dev] [Collective-checkins] r32125 - Quills/trunk
- Next message: [quills-dev] [Collective-checkins] r32137 - Quills/trunk
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: tomster
Date: Sat Oct 21 22:34:18 2006
New Revision: 32135
Modified:
Quills/trunk/Weblog.py
Log:
Added `getModifiedDate` for use with CacheFu until we've migrated weblogview to a zope3 view.
Modified: Quills/trunk/Weblog.py
==============================================================================
--- Quills/trunk/Weblog.py (original)
+++ Quills/trunk/Weblog.py Sat Oct 21 22:34:18 2006
@@ -363,5 +363,15 @@
authors[brain.Creator] = None
return authors.keys()
+ security.declareProtected(perms.View, 'getModifiedDate')
+ def getModifiedDate(self):
+ """ Dirty Convenience method for accessing the effective modification date from syndication.py.
+ As long as we haven't migrated weblog_view.pt to a zope3 view, we need a convenient way
+ to access the modification date for CacheFu or such.
+
+ """
+ from Products.basesyndication.interfaces import IFeed
+ return IFeed(self).getModifiedDate()
+
registerType(Weblog, PROJECTNAME)
-------------------------------------------------------------------------
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] [Collective-checkins] r32125 - Quills/trunk
- Next message: [quills-dev] [Collective-checkins] r32137 - Quills/trunk
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the quills-dev mailing list