@gen.coroutine
def _SetWelcomeIds(user, upload_request):
 unique_id = 1
 act_dict = upload_request['activity']
 act_dict['activity_id'] = Activity.ConstructActivityId(act_dict['timestamp'], user.webapp_dev_id, unique_id)
 unique_id += 1
 ep_dict = upload_request['episode']
 ep_dict['episode_id'] = Episode.ConstructEpisodeId(ep_dict['timestamp'], user.webapp_dev_id, unique_id)
 unique_id += 1
 for ph_dict in upload_request['photos']:
  ph_dict['photo_id'] = Photo.ConstructPhotoId(ph_dict['timestamp'], user.webapp_dev_id, unique_id)
  unique_id += 1

@ gen . coroutine def _SetWelcomeIds ( user , upload_request ) : unique_id = 1 act_dict = upload_request [ 'activity' ] act_dict [ 'activity_id' ] = Activity . ConstructActivityId ( act_dict [ 'timestamp' ] , user . webapp_dev_id , unique_id ) unique_id += 1 ep_dict = upload_request [ 'episode' ] ep_dict [ 'episode_id' ] = Episode . ConstructEpisodeId ( ep_dict [ 'timestamp' ] , user . webapp_dev_id , unique_id ) unique_id += 1 for ph_dict in upload_request [ 'photos' ] : ph_dict [ 'photo_id' ] = Photo . ConstructPhotoId ( ph_dict [ 'timestamp' ] , user . webapp_dev_id , unique_id ) unique_id += 1
assigns activity .