From: Tony Mack Date: Mon, 31 Oct 2011 20:29:06 +0000 (-0400) Subject: commenting out normalize(), should no longer need it X-Git-Tag: sfa-1.1-2~16 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=fe9d51a812665885a5c29fb536ecf71491d46cf9;p=sfa.git commenting out normalize(), should no longer need it --- diff --git a/sfa/plc/plcsfaapi.py b/sfa/plc/plcsfaapi.py index 49de80e6..a1712e5f 100644 --- a/sfa/plc/plcsfaapi.py +++ b/sfa/plc/plcsfaapi.py @@ -428,14 +428,14 @@ class PlcSfaApi(SfaApi): # 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] + #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):