Get leaves from trac to complete resources