def index():
    " Module's Home Page "
    try:
        module_name = settings.modules[module].name_nice
    except:
        module_name = T('Disaster Victim Identification')
    table = s3db.dvi_body
    total = db((table.deleted == False)).count()
    itable = s3db.dvi_identification
    query = ((((table.deleted == False) & (itable.pe_id == table.pe_id)) & (itable.deleted == False)) & (itable.status == 3))
    identified = db(query).count()
    status = [[str(T('identified')), int(identified)], [str(T('unidentified')), int((total - identified))]]
    response.title = module_name
    return dict(module_name=module_name, total=total, status=json.dumps(status))
Module's Home Page
def index():
    "  "
    try:
        module_name = settings.modules[module].name_nice
    except:
        module_name = T('Disaster Victim Identification')
    table = s3db.dvi_body
    total = db((table.deleted == False)).count()
    itable = s3db.dvi_identification
    query = ((((table.deleted == False) & (itable.pe_id == table.pe_id)) & (itable.deleted == False)) & (itable.status == 3))
    identified = db(query).count()
    status = [[str(T('identified')), int(identified)], [str(T('unidentified')), int((total - identified))]]
    response.title = module_name
    return dict(module_name=module_name, total=total, status=json.dumps(status))