www/project/icla/views/actions/discuss.json.rb [70:98]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
}

  # generate a token
token = pmc.name + '-' + date + '-' + Digest::MD5.hexdigest(@iclaemail)[0..5]

# save the discussion object to a file
file_name = '/srv/icla/' + token + '.json'

# important not to overwrite any existing files
err = LockFile.create_ex(file_name) do |f|
  f.write(JSON.pretty_generate(discussion))
end
if err
  if err.is_a? Errno::EEXIST
    _error 'There is already a file for that person!'
  else
    _error err.inspect
  end
  return # cannot continue
end

# add user and pmc emails to the response
_userEmail "#{user.public_name} <#{user.mail.first}>" if user
_pmcEmail pmc.private_mail_list if pmc

path = Pathname.new(env['REQUEST_URI']) + "../../?token=#{token}"
scheme = env['rack.url_scheme'] || 'https'
link = "#{scheme}://#{env['HTTP_HOST']}#{path}"
body_text = %{#{comment}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



www/project/icla/views/actions/vote.json.rb [69:98]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
}

  # generate a token
token = pmc.name + '-' + date + '-' + Digest::MD5.hexdigest(@iclaemail)[0..5]

# save the discussion object to a file
file_name = '/srv/icla/' + token + '.json'

# important not to overwrite any existing files
err = LockFile.create_ex(file_name) do |f|
  f.write(JSON.pretty_generate(discussion))
end
if err
  if err.is_a? Errno::EEXIST
    _error 'There is already a file for that person!'
  else
    _error err.inspect
  end
  return # cannot continue
end


# add user and pmc emails to the response
_userEmail "#{user.public_name} <#{user.mail.first}>" if user
_pmcEmail pmc.private_mail_list if pmc

path = Pathname.new(env['REQUEST_URI']) + "../../?token=#{token}"
scheme = env['rack.url_scheme'] || 'https'
link = "#{scheme}://#{env['HTTP_HOST']}#{path}"
body_text = %{#{comment}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



