def _set(request,name,value):
  profile = getProfile(request)
  try:
    variable = profile.variable_set.get(name=name)
    variable.value = value
  except __HOLE__:
    variable = Variable(profile=profile,name=name,value=value)
  variable.save()
  return ''
dataset/ETHPy150Open tmm1/graphite/webapp/graphite/cli/commands.py/_set