From cb0af5854734bcf25750d61c837ea8a0102bf4b2 Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@nexedi.com>
Date: Mon, 7 May 2012 11:21:16 +0200
Subject: [PATCH] Trivial changes and coding style.

---
 .../erp5_core/ERP5Site_checkDataWithScript.xml             | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_checkDataWithScript.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_checkDataWithScript.xml
index b1485f5cb1..2d2e5a00b1 100644
--- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_checkDataWithScript.xml
+++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_checkDataWithScript.xml
@@ -100,7 +100,7 @@ if depth == maximum_depth and id_list:\n
     recurse(document[id])\n
   if active_process is None:\n
     return error_list\n
-  if len(error_list):\n
+  if error_list:\n
     # Create an activity to update active_process,\n
     #  in order to prevent conflict errors.\n
     activate(active_process=active_process, priority=2) \\\n
@@ -120,12 +120,11 @@ else:\n
           \'portal_simulation\',\n
           \'portal_templates\',\n
           \'portal_trash\',\n
-])\n
+        ])\n
     else:\n
-      from DateTime import DateTime\n
       id_list = []\n
       for day_ago in xrange(hbtree_days):\n
-        date = (DateTime()-day_ago).strftime(\'%Y%m%d\')\n
+        date = (DateTime() - day_ago).strftime(\'%Y%m%d\')\n
         try:\n
           id_list += document.objectIds(base_id=date)\n
         except (TypeError, IndexError):\n
-- 
2.30.9