Changeset 116:256670b27fed

Show
Ignore:
Timestamp:
02/21/10 19:35:11 (7 months ago)
Author:
Roger Gammans <rgammans@…>
Branch:
default
Message:

Make AttributeValue?.get_parts() return parts in a consistent order

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • MysteryMachine/schema/MMAttributeValue.py

    r115 r116  
    172172    self.logger.debug( str(self.__class__)) 
    173173    self.logger.debug( self.parts) 
    174     #FIXME: Ensure consistent ordering 
    175     result = "\n".join(self.parts.values()) 
     174    result = "\n".join([x[1] for x in  sorted(self.parts.items())]) 
    176175    self.logger.debug( "raw-->%s<--" % result) 
    177176    return result