def case_activity():
 def prep(r):
  resource = r.resource
  list_fields = ['case_id$reference', 'person_id$first_name', 'person_id$last_name', 'need_id', 'need_details', 'emergency', 'referral_details', 'followup', 'followup_date', 'completed']
  resource.configure(list_fields=list_fields, insertable=False, deletable=False)
  return True
 s3.prep = prep
 return s3_rest_controller()

def case_activity ( ) : def prep ( r ) : resource = r . resource list_fields = [ 'case_id$reference' , 'person_id$first_name' , 'person_id$last_name' , 'need_id' , 'need_details' , 'emergency' , 'referral_details' , 'followup' , 'followup_date' , 'completed' ] resource . configure ( list_fields = list_fields , insertable = False , deletable = False ) return True s3 . prep = prep return s3_rest_controller ( )
case activities: restful crud controller .