From: Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> Date: Tue, 1 Nov 2011 11:05:01 +0000 (+0100) Subject: take out ugly hack, not needed anymore X-Git-Tag: sfa-1.1-2~14 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=c3b7abe953fb4d73e7033742a51edef4efefc55a;p=sfa.git take out ugly hack, not needed anymore --- 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):