[Erp5-report] r32095 luke - in /erp5/trunk/bt5/erp5_web: ToolTemplateItem/ bt/

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Jan 29 18:19:36 CET 2010


Author: luke
Date: Fri Jan 29 18:19:31 2010
New Revision: 32095

URL: http://svn.erp5.org?rev=32095&view=rev
Log:
 - in case if object is not implementing getModificationDate fallback to CMFCore implementation

Modified:
    erp5/trunk/bt5/erp5_web/ToolTemplateItem/caching_policy_manager.xml
    erp5/trunk/bt5/erp5_web/bt/revision

Modified: erp5/trunk/bt5/erp5_web/ToolTemplateItem/caching_policy_manager.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/ToolTemplateItem/caching_policy_manager.xml?rev=32095&r1=32094&r2=32095&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/ToolTemplateItem/caching_policy_manager.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_web/ToolTemplateItem/caching_policy_manager.xml [utf8] Fri Jan 29 18:19:31 2010
@@ -241,7 +241,7 @@
       <dictionary>
         <item>
             <key> <string>text</string> </key>
-            <value> <string>object/getModificationDate</string> </value>
+            <value> <string>python: getattr(object, \'getModificationDate\', None) is not None and object.getModificationDate() or object.modified()</string> </value>
         </item>
       </dictionary>
     </pickle>
@@ -289,7 +289,7 @@
       <dictionary>
         <item>
             <key> <string>text</string> </key>
-            <value> <string>object/getModificationDate</string> </value>
+            <value> <string>python: getattr(object, \'getModificationDate\', None) is not None and object.getModificationDate() or object.modified()</string> </value>
         </item>
       </dictionary>
     </pickle>
@@ -337,7 +337,7 @@
       <dictionary>
         <item>
             <key> <string>text</string> </key>
-            <value> <string>object/getModificationDate</string> </value>
+            <value> <string>python: getattr(object, \'getModificationDate\', None) is not None and object.getModificationDate() or object.modified()</string> </value>
         </item>
       </dictionary>
     </pickle>

Modified: erp5/trunk/bt5/erp5_web/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/bt/revision?rev=32095&r1=32094&r2=32095&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_web/bt/revision [utf8] Fri Jan 29 18:19:31 2010
@@ -1,1 +1,1 @@
-900
+901




More information about the Erp5-report mailing list