'Volunteer Management'

def vol(self):

    s3 = current.session.s3
    ADMIN = s3.system_roles.ADMIN
    is_org_admin = (lambda i: ((s3.hrm.orgs and True) or (ADMIN in s3.roles)))
    settings = current.deployment_settings
    teams = settings.get_hrm_teams()
    use_teams = (lambda i: teams)
    return M(c='vol')(M('Volunteers', f='volunteer')(M('Create    Volunteer', m='create'), M('Import', f='person', m='import', vars={'group': 'volunteer'}, p='create')), M(teams, f='group', check=use_teams)(M('Create    Team', m='create'), M('Search    Members', f='group_membership')), M('Training    Events', f='training_event')(M('Create    Event', m='create'), M('Search    Training    Participants', f='training'), M('Import    Participant    List', f='training', m='import')), M('Training    Course    Catalog', f='course')(M('Create    Course', m='create')), M('Certificate    Catalog', f='certificate')(M('Create    Certificate', m='create')), M('Reports', f='volunteer', m='report')(M('Volunteer    Report', m='report'), M('Training    Report', f='training', m='report')))
