#NEWLINE# def list_comments( thread_uid ) : #NEWLINE# #INDENT# 'List all comments for given thread.\n\n    :param thread_uid: Thread unique UID.\n    ' #NEWLINE# with content . pipeline ( ) as pipe : #NEWLINE# #INDENT# comments_key = build_key ( THREAD_COMMENTS_KEY , thread_uid ) #NEWLINE# uids = [ ] #NEWLINE# for comment_uid in links . lrange ( uids , 0 , ( - 1 ) ) : #NEWLINE# #INDENT# pipe . hgetall ( build_key ( COMMENT_KEY , thread_uid , comment_uid ) ) #NEWLINE# uids . append ( comment_uid ) #NEWLINE# #UNINDENT# return OrderedDict ( zip ( uids , pipe . execute ( ) ) )