From c3b7abe953fb4d73e7033742a51edef4efefc55a Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 1 Nov 2011 12:05:01 +0100 Subject: [PATCH] take out ugly hack, not needed anymore --- sfa/plc/plcsfaapi.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/sfa/plc/plcsfaapi.py b/sfa/plc/plcsfaapi.py index a1712e5f..357a210a 100644 --- a/sfa/plc/plcsfaapi.py +++ b/sfa/plc/plcsfaapi.py @@ -425,17 +425,6 @@ class PlcSfaApi(SfaApi): else: oldList = [] newList = record.get(listName, []) - # xxx ugly hack - somehow we receive here a list of {'text':value} - # instead of an expected list of strings - # please remove once this is issue is cleanly fixed - #def normalize (value): - # from types import StringTypes - # if isinstance(value,StringTypes): return value - # elif isinstance(value,dict): - # newvalue=value['text'] - # logger.info("Normalizing %s=>%s"%(value,newvalue)) - # return newvalue - #newList=[normalize(v) for v in newList] # if the lists are the same, then we don't have to update anything if (oldList == newList): -- 2.47.0