take out ugly hack, not needed anymore
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 1 Nov 2011 11:05:01 +0000 (12:05 +0100)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 1 Nov 2011 11:05:01 +0000 (12:05 +0100)
sfa/plc/plcsfaapi.py

index a1712e5..357a210 100644 (file)
@@ -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):