#NEWLINE# def pattern_tree( parent , height , level ) : #NEWLINE# #INDENT# if ( height == 0 ) : #NEWLINE# #INDENT# return leaf_patterns #NEWLINE# #UNINDENT# ids = [ ( i + int2ascii ( i , level ) ) for i in range ( level ) ] #NEWLINE# return patterns ( '' , * ( url ( ( '^%s/' % id_ ) , include ( pattern_tree ( id_ , ( height - 1 ) , level ) ) ) for id_ in ids ) )