def YamlDumper(aff4object):
 aff4object.Flush()
 result = {}
 for (attribute, values) in aff4object.synced_attributes.items():
  result[attribute.predicate] = []
  for value in values:
   value = value.ToRDFValue()
   result[attribute.predicate].append([value.__class__.__name__, value.SerializeToString(), str(value.age)])
 return yaml.dump(dict(aff4_class=aff4object.__class__.__name__, _urn=aff4object.urn.SerializeToString(), attributes=result, age_policy=aff4object.age_policy))

def YamlDumper ( aff4object ) : aff4object . Flush ( ) result = { } for ( attribute , values ) in aff4object . synced_attributes . items ( ) : result [ attribute . predicate ] = [ ] for value in values : value = value . ToRDFValue ( ) result [ attribute . predicate ] . append ( [ value . __class__ . __name__ , value . SerializeToString ( ) , str ( value . age ) ] ) return yaml . dump ( dict ( aff4_class = aff4object . __class__ . __name__ , _urn = aff4object . urn . SerializeToString ( ) , attributes = result , age_policy = aff4object . age_policy ) )
dumps the given aff4object into a yaml representation .