Mercurial > piecrust2
diff foodtruck/views/edit.py @ 607:c67dcc0fa80f
admin: Prompt the user for a commit message when committing a page.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 27 Jan 2016 22:47:24 -0800 |
parents | 3cec8634209a |
children | efc1dc916e7c |
line wrap: on
line diff
--- a/foodtruck/views/edit.py Wed Jan 27 22:47:00 2016 -0800 +++ b/foodtruck/views/edit.py Wed Jan 27 22:47:24 2016 -0800 @@ -39,7 +39,9 @@ page.path, site_app.root_dir)) if 'do_save_and_commit' in request.form: - message = "Edit %s" % os.path.relpath( + message = request.form.get('commit_msg') + if not message: + message = "Edit %s" % os.path.relpath( page.path, site_app.root_dir) site.scm.commit([page.path], message)