#NEWLINE# @ gen . coroutine #NEWLINE# def _CreateActivity( self , sharer_user , timestamp , activity_func , **kwargs ) : #NEWLINE# #INDENT# 'Creates an activity by invoking "activity_func" with the given args.' #NEWLINE# activity_id = Activity . ConstructActivityId ( timestamp , self . _new_user . webapp_dev_id , self . _unique_id ) #NEWLINE# self . _unique_id += 1 #NEWLINE# activity = ( yield activity_func ( self . _client , sharer_user . user_id , self . _viewpoint_id , activity_id , timestamp , update_seq = self . _update_seq , ** kwargs ) ) #NEWLINE# self . _update_seq += 1 #NEWLINE# raise gen . Return ( activity )