def alert_response():
 alert_id = get_vars.get('alert_id')
 if alert_id:
  table = s3db.deploy_response
  f = table.alert_id
  f.readable = f.writable = False
  f.default = alert_id
  atable = s3db.deploy_alert
  alert = db((atable.id == alert_id)).select(atable.mission_id, limitby=(0, 1)).first()
  if alert:
   f = table.mission_id
   f.readable = f.writable = False
   f.default = alert.mission_id
  human_resource_id = auth.s3_logged_in_human_resource()
  if human_resource_id:
   f = table.human_resource_id_id
   f.readable = f.writable = False
   f.default = alert_id
  table.message_id.readable = False
 return s3_rest_controller('deploy', 'response')

def alert_response ( ) : alert_id = get_vars . get ( 'alert_id' ) if alert_id : table = s3db . deploy_response f = table . alert_id f . readable = f . writable = False f . default = alert_id atable = s3db . deploy_alert alert = db ( ( atable . id == alert_id ) ) . select ( atable . mission_id , limitby = ( 0 , 1 ) ) . first ( ) if alert : f = table . mission_id f . readable = f . writable = False f . default = alert . mission_id human_resource_id = auth . s3_logged_in_human_resource ( ) if human_resource_id : f = table . human_resource_id_id f . readable = f . writable = False f . default = alert_id table . message_id . readable = False return s3_rest_controller ( 'deploy' , 'response' )
restful crud controller - used to allow rit memebers to apply for positions @todo: block all methods but create => what next_url? .