def credential():
 s3.filter = (FS('person_id$human_resource.type') == 2)
 return s3db.hrm_credential_controller()

def credential ( ) : s3 . filter = ( FS ( 'person_id$human_resource.type' ) == 2 ) return s3db . hrm_credential_controller ( )
credentials controller .