def su_new(request, type):
  if not request.user.is_authenticated():
    return redirect('django.contrib.auth.views.login')
  if type != 'post' and type != 'page':
    return redirect('django.contrib.auth.views.login')
  catalog_path = util.checkBaseline()
  tree = ET.parse(catalog_path)
  new_post = newElem(type)
  tree.getroot().append(new_post)
  tree.write(catalog_path, 'UTF-8')
  writeContentFile(toContentElement(new_post))
  return redirect('su')
Serve a POST request.
dataset/ETHPy150Open DeanCutlet/filestack/views.py/su_new--crossover with--dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/CGIHTTPServer.py/CGIHTTPRequestHandler.do_POST