#NEWLINE# @ gen . coroutine #NEWLINE# def _PostComment( self , sharer_user , timestamp , message , asset_id = None ) : #NEWLINE# #INDENT# 'Creates a new comment and a corresponding activity.' #NEWLINE# comment_id = Comment . ConstructCommentId ( timestamp , self . _new_user . webapp_dev_id , self . _unique_id ) #NEWLINE# self . _unique_id += 1 #NEWLINE# comment = ( yield Comment . CreateNew ( self . _client , viewpoint_id = self . _viewpoint_id , comment_id = comment_id , user_id = sharer_user . user_id , asset_id = asset_id , timestamp = timestamp , message = message ) ) #NEWLINE# ( yield self . _CreateActivity ( sharer_user , timestamp , Activity . CreatePostComment , cm_dict = { #NEWLINE# #INDENT# 'comment_id' : comment_id , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# raise gen . Return ( comment )