<s> from boto . s3 . user import User <EOL> class DeleteMarker : <EOL> def __init__ ( self , bucket = None , name = None ) : <EOL> self . bucket = bucket <EOL> self . name = name <EOL> self . is_latest = False <EOL> self . last_modified = None <EOL> self . owner = None <EOL> def startElement ( self , name , attrs , connection ) : <EOL> if name == '<STR_LIT>' : <EOL> self . owner = User ( self ) <EOL> return self . owner <EOL> else : <EOL> return None <EOL> def endElement ( self , name , value , connection ) : <EOL> if name == '<STR_LIT>' : <EOL> self . name = value . encode ( '<STR_LIT:utf-8>' ) <EOL> elif name == '<STR_LIT>' : <EOL> if value == '<STR_LIT:true>' : <EOL> self . is_lastest = True <EOL> else : <EOL> self . is_latest = False <EOL> elif name == '<STR_LIT>' : <EOL> self . last_modified = value <EOL> elif name == '<STR_LIT>' : <EOL> pass <EOL> elif name == '<STR_LIT>' : <EOL> self . version_id = value <EOL> else : <EOL> setattr ( self , name , value ) </s>
