<s> from xml_tools import xml_get_text <EOL> class StorageSnapshot ( object ) : <EOL> def __init__ ( self , deltacloud , dom ) : <EOL> self . _deltacloud = deltacloud <EOL> self . xml = dom . toxml ( ) <EOL> self . created = xml_get_text ( dom , "<STR_LIT>" ) [ <NUM_LIT:0> ] <EOL> self . state = xml_get_text ( dom , "<STR_LIT:state>" ) [ <NUM_LIT:0> ] <EOL> def __repr__ ( self ) : <EOL> return self . xml </s>
