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

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
morgue registry .