def publish_collection_and_update_user_profiles(committer_id, collection_id):
 rights_manager.publish_collection(committer_id, collection_id)
 contribution_time_msec = utils.get_current_time_in_millisecs()
 collection_summary = get_collection_summary_by_id(collection_id)
 contributor_ids = collection_summary.contributor_ids
 for contributor in contributor_ids:
  user_services.update_first_contribution_msec_if_not_set(contributor, contribution_time_msec)

def publish_collection_and_update_user_profiles ( committer_id , collection_id ) : rights_manager . publish_collection ( committer_id , collection_id ) contribution_time_msec = utils . get_current_time_in_millisecs ( ) collection_summary = get_collection_summary_by_id ( collection_id ) contributor_ids = collection_summary . contributor_ids for contributor in contributor_ids : user_services . update_first_contribution_msec_if_not_set ( contributor , contribution_time_msec )
publishes the collection with publish_collection() function in rights_manager .