def morgue():
    ' Morgue Registry '
    morgue_tabs = [(T('Morgue Details'), ''), (T('Bodies'), 'body')]
    rheader = S3ResourceHeader([[(T('Morgue'), 'name')]], tabs=morgue_tabs)

    def prep(r):
        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
Morgue Registry
def morgue():
    '  '
    morgue_tabs = [(T('Morgue Details'), ), (T('Bodies'), 'body')]
    rheader = S3ResourceHeader([[(T('Morgue'), 'name')]], tabs=morgue_tabs)

    def prep(r):
        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