1.1 --- a/events/queue_for_review.py Thu Oct 13 21:29:22 2011 +0200
1.2 +++ b/events/queue_for_review.py Thu Oct 13 22:48:25 2011 +0200
1.3 @@ -41,14 +41,18 @@
1.4 elif not is_approved(request):
1.5
1.6 # Save the page in the queue.
1.7 - # NOTE: Record the parent revision.
1.8 - # NOTE: (to-do/record-parent-for-proper-merges.txt)
1.9
1.10 new_page = PageEditor(request, "%s/%s" % (pagename, queued_changes_page))
1.11
1.12 # Add an ACL to prevent normal users from seeing the page anywhere.
1.13 + # Add a parent revision to the page.
1.14
1.15 - body = add_access_control(request, body)
1.16 + directives = [
1.17 + get_access_control_directive(request),
1.18 + get_parent_revision_directive(request, pagename)
1.19 + ]
1.20 +
1.21 + body = add_directives(body, directives)
1.22
1.23 username = request.user.name
1.24 comment = (username or _("anonymous")) + " : " + _("Queued page edit")