From 3ea922c8f14357ca711964984a495f3db64c8873 Mon Sep 17 00:00:00 2001
From: Wenjie Zheng <wenjie.zheng@tiolive.com>
Date: Wed, 25 Mar 2015 12:52:13 +0000
Subject: [PATCH] Worklist.py: change the value type of the return value of
 getVarMatch so the Worklist can work.

---
 product/ERP5Workflow/Document/Worklist.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/ERP5Workflow/Document/Worklist.py b/product/ERP5Workflow/Document/Worklist.py
index 4669ce8863..c348ab9304 100644
--- a/product/ERP5Workflow/Document/Worklist.py
+++ b/product/ERP5Workflow/Document/Worklist.py
@@ -146,9 +146,9 @@ class Worklist(XMLObject):
             v = [ var.strip() for var in self.getMatchedPortalTypeList() ]
             matches = tuple(v)
         elif id == 'validation_state':
-          matches = tuple(self.getMatchedValidationState())
+          matches = tuple([self.getMatchedValidationStateList()])
         elif id == 'simulation_stae':
-          matches = tuple(Expression(self.getMatchedSimulationState()))
+          matches = tuple([self.getMatchedSimulationStateList()])
         else:
           raise NotImplementedError ("Cataloged variable matching error in Worklist.py")
         if matches is not None:
-- 
2.30.9