def person_search():
 s3.filter = (FS('application.active') == True)
 s3.prep = (lambda r: (r.method == 'search_ac'))
 return s3_rest_controller('pr', 'person')

def person_search ( ) : s3 . filter = ( FS ( 'application.active' ) == True ) s3 . prep = ( lambda r : ( r . method == 'search_ac' ) ) return s3_rest_controller ( 'pr' , 'person' )
person rest controller - limited to just search_ac for use in autocompletes - allows differential access permissions .