<commit_before># Copyright (c) 2009-2010 gocept gmbh & co. kg
# See also LICENSE.txt

import zeit.edit.browser.view
import zope.event
import zope.lifecycleevent


class UpdateOrder(zeit.edit.browser.view.Action):

    keys = zeit.edit.browser.view.Form('keys', json=True)

    def update(self):
        self.context.updateOrder(self.keys)
        zope.event.notify(
            zope.lifecycleevent.ObjectModifiedEvent(self.context))<commit_msg>Re #8787: Annotate action for undo<commit_after># Copyright (c) 2009-2010 gocept gmbh & co. kg
# See also LICENSE.txt

from zeit.cms.i18n import MessageFactory as _
import zeit.edit.browser.view
import zope.event
import zope.lifecycleevent


class UpdateOrder(zeit.edit.browser.view.Action):

    keys = zeit.edit.browser.view.Form('keys', json=True)

    def update(self):
        self.undo_description = _('change block order')
        self.context.updateOrder(self.keys)
        zope.event.notify(
            zope.lifecycleevent.ObjectModifiedEvent(self.context))
{'fraction_non_alphanumeric': 0.11078140454995054, 'fraction_numerical': 0.021760633036597428, 'mean_word_length': 3.685185185185185, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '956300', 'n_tokens_mistral': 345, 'n_tokens_neox': 319, 'n_words': 67}