# else:
# parent = None
stage = form.cleaned_data['stage']
- # tags = [stage] if stage else []
- # publishable = (form.cleaned_data['publishable'] and
- # request.user.has_perm('catalogue.can_pubmark'))
try:
doc.commit(
author=author,
try:
revision = int(revision)
except (ValueError, TypeError):
- revision = doc.revision()
+ revision = doc.revision
if revision is not None:
text = doc.at_revision(revision).materialize()