# HG changeset patch # User Thierry Florac # Date 1505990655 -7200 # Node ID 1f3b274d8a76cab46571cc2e1df8c0c8a38eb20e # Parent 6b7ecb3c7bca018ff67bcfe581cd793a21611b37 Use generic event for forms updates diff -r 6b7ecb3c7bca -r 1f3b274d8a76 src/pyams_content/component/illustration/zmi/__init__.py --- a/src/pyams_content/component/illustration/zmi/__init__.py Thu Sep 21 12:00:57 2017 +0200 +++ b/src/pyams_content/component/illustration/zmi/__init__.py Thu Sep 21 12:44:15 2017 +0200 @@ -91,10 +91,10 @@ css_class = 'form-group' padding_class = '' - fieldset_class = 'margin-top-10 padding-top-5 padding-bottom-5' + fieldset_class = 'margin-top-10 padding-y-5' legend = _("Illustration") - legend_class = 'inner switcher padding-right-10 no-y-padding pull-left' + legend_class = 'inner switcher no-y-padding padding-right-10 pull-left' fields = field.Fields(IIllustration).omit('__parent__', '__name__') weight = 10 @@ -126,7 +126,7 @@ form.update() output.setdefault('events', []).append({ 'event': 'PyAMS_content.changed_item', - 'options': {'object_type': 'illustration', + 'options': {'object_type': 'form', 'object_name': '{0}_{1}_{2}'.format( self.context.__class__.__name__, getattr(form.getContent(), '__name__', 'noname').replace('++', ''), diff -r 6b7ecb3c7bca -r 1f3b274d8a76 src/pyams_content/component/illustration/zmi/paragraph.py --- a/src/pyams_content/component/illustration/zmi/paragraph.py Thu Sep 21 12:00:57 2017 +0200 +++ b/src/pyams_content/component/illustration/zmi/paragraph.py Thu Sep 21 12:44:15 2017 +0200 @@ -174,7 +174,7 @@ form.update() output.setdefault('events', []).append({ 'event': 'PyAMS_content.changed_item', - 'options': {'object_type': 'illustration', + 'options': {'object_type': 'form', 'object_name': '{0}_{1}_{2}'.format( self.context.__class__.__name__, getattr(form.getContent(), '__name__', 'noname').replace('++', ''),