def morgue():
    """ Morgue Registry """

    morgue_tabs = [(T("Morgue Details"), ""),
                   (T("Bodies"), "body"),
                   ]

    rheader = S3ResourceHeader([[(T("Morgue"), "name")]
                                ], tabs=morgue_tabs)

    # Pre-processor
    def prep(r):
        # Location Filter
        s3db.gis_location_filter(r)

        if r.interactive and r.id and not r.component:
            field = r.table.obsolete
            field.readable = field.writable = True
        return True
    s3.prep = prep

    output = s3_rest_controller(rheader=rheader)
    return output

# -----------------------------------------------------------------------------
dataset/ETHPy150Open sahana/eden/controllers/dvi.py/morgue/original