def METHOD_NAME(request):
    title = request.POST["title"].strip()
    content = request.POST["content"].strip()
    wesley = "wesley" in request.POST
    if not title:
        raise WeasylError("titleInvalid")
    if not content:
        raise WeasylError("contentInvalid")
    updateid = siteupdate.create(
        userid=request.userid,
        title=title,
        content=content,
        wesley=wesley,
    )
    raise HTTPSeeOther(location="/site-updates/%d" % (updateid,))