def org_search():
 s3.prep = (lambda r: (r.method == 'search_ac'))
 return s3_rest_controller(module, 'organisation')

def org_search ( ) : s3 . prep = ( lambda r : ( r . method == 'search_ac' ) ) return s3_rest_controller ( module , 'organisation' )
organisation rest controller - limited to just search_ac for use in autocompletes - allows differential access permissions .