# HG changeset patch # User Thierry Florac # Date 1507875239 -7200 # Node ID e585a41adea132412676f1299f9bb6ef35ff5fab # Parent 90e3fa165ce187462bb50500f7007994c18f31b5 Updated JSON responses diff -r 90e3fa165ce1 -r e585a41adea1 src/pyams_content/component/illustration/zmi/paragraph.py --- a/src/pyams_content/component/illustration/zmi/paragraph.py Fri Oct 13 08:13:10 2017 +0200 +++ b/src/pyams_content/component/illustration/zmi/paragraph.py Fri Oct 13 08:13:59 2017 +0200 @@ -126,7 +126,7 @@ if 'title' in changes.get(IIllustration, ()): output.setdefault('events', []).append({ 'event': 'PyAMS_content.changed_item', - 'options': {'object_type': 'paragraph', + 'options': {'handler': 'PyAMS_content.paragraphs.refreshParagraph', 'object_name': self.context.__name__, 'title': II18n(self.context).query_attribute('title', request=self.request), 'visible': self.context.visible} @@ -161,7 +161,7 @@ if 'title' in updated: output.setdefault('events', []).append({ 'event': 'PyAMS_content.changed_item', - 'options': {'object_type': 'paragraph', + 'options': {'handler': 'PyAMS_content.paragraphs.refreshParagraph', 'object_name': self.context.__name__, 'title': II18n(self.context).query_attribute('title', request=self.request), 'visible': self.context.visible} @@ -173,7 +173,7 @@ form.update() output.setdefault('events', []).append({ 'event': 'PyAMS_content.changed_item', - 'options': {'object_type': 'form', + 'options': {'handler': 'PyAMS_content.refreshForm', 'object_name': '{0}_{1}_{2}'.format( self.context.__class__.__name__, getattr(form.getContent(), '__name__', 'noname').replace('++', ''),