ndoc = current.invoke_and_commit(\
xml_update_action, lambda d: (msg, current.owner) )
try:
# return the new revision number
ndoc = current.invoke_and_commit(\
xml_update_action, lambda d: (msg, current.owner) )
try:
# return the new revision number
- "updated_revision": ndoc.revision
- }
+ "updated_revision": ndoc.revision,
+ "url": reverse("doctext_view", args=[ndoc.id, ndoc.revision])
+ })
raise e
except RevisionNotFound, e:
return response.EntityNotFound().django_response(e)
raise e
except RevisionNotFound, e:
return response.EntityNotFound().django_response(e)