src/pyams_content/component/paragraph/zmi/video.py
changeset 283 9139536eab90
parent 245 6b02caf97666
child 406 5527bc086216
equal deleted inserted replaced
282:2990223a5b7f 283:9139536eab90
   187             # we have to commit transaction to be able to handle blobs...
   187             # we have to commit transaction to be able to handle blobs...
   188             ITransactionManager(self.context).get().commit()
   188             ITransactionManager(self.context).get().commit()
   189             form = VideoParagraphPropertiesInnerEditForm(self.context, self.request)
   189             form = VideoParagraphPropertiesInnerEditForm(self.context, self.request)
   190             form.update()
   190             form.update()
   191             output.setdefault('events', []).append({
   191             output.setdefault('events', []).append({
   192                 'event': 'PyAMS_content.changed_item',
   192                 'event': 'myams.refresh',
   193                 'options': {'handler': 'PyAMS_content.refreshForm',
   193                 'options': {'object_id': '{0}_{1}_{2}'.format(
   194                             'object_name': '{0}_{1}_{2}'.format(
       
   195                                 self.context.__class__.__name__,
   194                                 self.context.__class__.__name__,
   196                                 getattr(form.getContent(), '__name__', 'noname').replace('++', ''),
   195                                 getattr(form.getContent(), '__name__', 'noname').replace('++', ''),
   197                                 form.id),
   196                                 form.id),
   198                             'form': form.render()}
   197                             'content': form.render()}
   199             })
   198             })
   200         return output
   199         return output
   201 
   200 
   202 
   201 
   203 #
   202 #