From e8a8a44f50de33a585466ba956d27f3aa0fb1c7d Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Tue, 11 Sep 2007 06:07:54 +0000 Subject: [PATCH] Test merge. Coding style: new line after colon. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16242 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/Base.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/product/ERP5Type/Base.py b/product/ERP5Type/Base.py index 0b12ad9061..77c4fc037d 100644 --- a/product/ERP5Type/Base.py +++ b/product/ERP5Type/Base.py @@ -2875,16 +2875,16 @@ class Base( CopyContainer, portal_workflow = getToolByName(self, 'portal_workflow') wf = portal_workflow.getWorkflowById('edit_workflow') wf_list = list(portal_workflow.getWorkflowsFor(self)) - if wf is not None: wf_list = [wf] + wf_list + if wf is not None: + wf_list = [wf] + wf_list max_date = None for wf in wf_list: history = wf.getInfoFor(self, 'history', None) - if history is not None: - if len(history): - date = history[-1].get('time', None) - # Then get the last line of edit_workflow - if date > max_date: - max_date = date + if history is not None and len(history): + date = history[-1].get('time', None) + # Then get the last line of edit_workflow + if date > max_date: + max_date = date return max_date # Layout management -- 2.30.9