'Encodes all integer values in the dict rval whose keys are \'id\' or end with \'_id\'
It might be useful to turn this in to a decorator'

def encode_all_ids(self, trans, rval, recursive=False):

    return trans.security.encode_all_ids(rval, recursive=recursive)
