'Walks up the tree to construct Type treepath'

def treewalk(self, save=True):

    treepath = ''
    for folder in self.get_tree_path():
        slug = unicode(folder.name).replace('    ', '-')
        slug = defaultfilters.slugify(unidecode(slug))
        treepath += (slug + '/')
    self.treepath = treepath
    if save:
        self.save()
    return self
