def tracing():
 def prep(r):
  if (r.id and (r.component_name == 'exposure')):
   ctable = r.component.table
   case_id = ctable.case_id
   case_id.default = r.id
   case_id.readable = case_id.writable = False
   crud_strings = s3.crud_strings[r.component.tablename]
   crud_strings['label_create'] = T('Add Contact Person')
   crud_strings['label_delete_button'] = T('Delete Contact Person')
  return True
 s3.prep = prep
 return s3_rest_controller(rheader=s3db.disease_rheader)

def tracing ( ) : def prep ( r ) : if ( r . id and ( r . component_name == 'exposure' ) ) : ctable = r . component . table case_id = ctable . case_id case_id . default = r . id case_id . readable = case_id . writable = False crud_strings = s3 . crud_strings [ r . component . tablename ] crud_strings [ 'label_create' ] = T ( 'Add Contact Person' ) crud_strings [ 'label_delete_button' ] = T ( 'Delete Contact Person' ) return True s3 . prep = prep return s3_rest_controller ( rheader = s3db . disease_rheader )
contact tracing controller .