'Add all Deployment Team members to the Recipients of the Alert
- only runs if settings.deploy.manual_recipients is False'

@staticmethod
def deploy_alert_onaccept(form):

    db = current.db
    s3db = current.s3db
    alert_id = form.vars.id
    atable = s3db.deploy_application
    query = ((atable.active == True) & (atable.deleted == False))
    rows = db(query).select(atable.human_resource_id)
    insert = s3db.deploy_alert_recipient.insert
    for row in rows:
        insert(alert_id=alert_id, human_resource_id=row.human_resource_id)
