<s> from com . rackspace . cloud . servers . api . client . jsonwrapper import json <EOL> class Personality : <EOL> def __init__ ( self ) : <EOL> self . _files = None <EOL> def get_files ( self ) : <EOL> return self . _files <EOL> def set_files ( self , value ) : <EOL> self . _files = value <EOL> files = property ( get_files , set_files ) <EOL> @ property <EOL> def asDict ( self ) : <EOL> """<STR_LIT>""" <EOL> personalityAsDict = { "<STR_LIT>" : [ ] } <EOL> for file in self . files : <EOL> personalityAsDict [ '<STR_LIT>' ] . append ( file . asDict ) <EOL> return personalityAsDict <EOL> @ property <EOL> def asJSON ( self ) : <EOL> """<STR_LIT>""" <EOL> return json . dumps ( self . asDict ) </s>
