'Returns a Knowledge Item instance matching the given treepath'

def by_path(treePath, itemPath):

    folder = KnowledgeFolder.by_path(unidecode(treePath))
    item = KnowledgeItem.objects.filter(treepath=unidecode(itemPath), folder=folder)
    if item:
        item = item[0]
    else:
        item = None
    return item
