def airport():
 def prep(r):
  s3db.gis_location_filter(r)
  if r.interactive:
   if r.component:
    if (r.component.name == 'human_resource'):
     s3db.org_site_staff_config(r)
    elif (r.component.name == 'inv_item'):
     s3db.configure('inv_inv_item', create=False, deletable=False, editable=False, listadd=False)
   elif (r.method == 'update'):
    field = r.table.obsolete
    field.readable = field.writable = True
  return True
 s3.prep = prep
 return s3_rest_controller(rheader=s3db.transport_rheader)

def airport ( ) : def prep ( r ) : s3db . gis_location_filter ( r ) if r . interactive : if r . component : if ( r . component . name == 'human_resource' ) : s3db . org_site_staff_config ( r ) elif ( r . component . name == 'inv_item' ) : s3db . configure ( 'inv_inv_item' , create = False , deletable = False , editable = False , listadd = False ) elif ( r . method == 'update' ) : field = r . table . obsolete field . readable = field . writable = True return True s3 . prep = prep return s3_rest_controller ( rheader = s3db . transport_rheader )
restful crud controller .