#NEWLINE# def itemToPage( self , item ) : #NEWLINE# #INDENT# ' get item hierarchy from item ' #NEWLINE# page = '' #NEWLINE# if ( not hasattr ( item , 'text' ) ) : #NEWLINE# #INDENT# return page #NEWLINE# #UNINDENT# page = item . text ( 0 ) #NEWLINE# parent = item . parent ( ) #NEWLINE# while ( parent is not None ) : #NEWLINE# #INDENT# page = ( ( parent . text ( 0 ) + '/' ) + item ) #NEWLINE# parent = parent . parent ( ) #NEWLINE# #UNINDENT# return page