'Function to be called from REST prep functions
- main module & components (sites)'

@staticmethod
def req_prep(r):

    if ((not r.component) or (r.component.name == 'req')):
        default_type = current.db.req_req.type.default
        if default_type:
            T = current.T
            req_submit_button = {1: T('Save    and    add    Items'), 3: T('Save    and    add    People'), 9: T('Save')}
            current.response.s3.crud.submit_button = req_submit_button[default_type]
