def info_parameter():
 def prep(r):
  if (r.representation == 'json'):
   list_fields = ['id', 'alert_id', 'info_id', 'name', 'value', 'mobile']
   s3db.configure('cap_info_parameter', list_fields=list_fields)
  else:
   return
  return True
 s3.prep = prep
 return s3_rest_controller()

def info_parameter ( ) : def prep ( r ) : if ( r . representation == 'json' ) : list_fields = [ 'id' , 'alert_id' , 'info_id' , 'name' , 'value' , 'mobile' ] s3db . configure ( 'cap_info_parameter' , list_fields = list_fields ) else : return return True s3 . prep = prep return s3_rest_controller ( )
restful crud controller should only be accessed from mobile client .