#NEWLINE# def treewalk( self , save = True ) : #NEWLINE# #INDENT# 'Walks up the tree to construct Type treepath' #NEWLINE# treepath = '' #NEWLINE# for folder in self . get_tree_path ( ) : #NEWLINE# #INDENT# slug = unicode ( folder . name ) . replace ( ' ' , '-' ) #NEWLINE# slug = defaultfilters . slugify ( unidecode ( slug ) ) #NEWLINE# treepath += ( slug + '/' ) #NEWLINE# #UNINDENT# self . treepath = treepath #NEWLINE# if treepath : #NEWLINE# #INDENT# self . save ( ) #NEWLINE# #UNINDENT# return self