From fe9d51a812665885a5c29fb536ecf71491d46cf9 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Mon, 31 Oct 2011 16:29:06 -0400 Subject: [PATCH] commenting out normalize(), should no longer need it --- sfa/plc/plcsfaapi.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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): -- 2.47.0