def application():
 settings.hrm.staff_experience = True
 settings.hrm.use_skills = True
 settings.search.filter_manager = True
 def prep(r):
  method = r.method
  if ((not method) and (r.representation != 's3json')):
   r.method = method = 'select'
  if (method == 'select'):
   r.custom_action = s3db.deploy_apply
  return True
 s3.prep = prep
 if (('delete' in request.args) or ((request.env.request_method == 'POST') and (auth.permission.format == 's3json'))):
  return s3_rest_controller()
 else:
  return s3_rest_controller('hrm', 'human_resource')

def application ( ) : settings . hrm . staff_experience = True settings . hrm . use_skills = True settings . search . filter_manager = True def prep ( r ) : method = r . method if ( ( not method ) and ( r . representation != 's3json' ) ) : r . method = method = 'select' if ( method == 'select' ) : r . custom_action = s3db . deploy_apply return True s3 . prep = prep if ( ( 'delete' in request . args ) or ( ( request . env . request_method == 'POST' ) and ( auth . permission . format == 's3json' ) ) ) : return s3_rest_controller ( ) else : return s3_rest_controller ( 'hrm' , 'human_resource' )
the main wsgi application .