This is bad. It references the same Buttons object as EditForm, so when you add new buttons, EditForm will get them too.

Instead do buttons = EditForm.buttons.copy(), or use the z3c.form.form.extends helper function.