from wiki.helpers import (JSONResponse, JSONFormInvalid, JSONServerError,
ajax_require_permission)
from wiki.helpers import (JSONResponse, JSONFormInvalid, JSONServerError,
ajax_require_permission)
if request.method == 'POST':
form = ImageSaveForm(request.POST, user=request.user, prefix="textsave")
if form.is_valid():
if request.method == 'POST':
form = ImageSaveForm(request.POST, user=request.user, prefix="textsave")
if form.is_valid():
"author": change.author_str(),
"date": localize(change.created_at),
"publishable": _("Publishable") + "\n" if change.publishable else "",
"author": change.author_str(),
"date": localize(change.created_at),
"publishable": _("Publishable") + "\n" if change.publishable else "",