move the standard handling of add_attribute
Authored by: gerddie 2009-09-23
Parent: [r1291]
Child: [r1293]