Re: Why does TinyMCE Upload not notify the Zope event system?

"Jens W. Klein" <jens-/[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Organization Klein & Partner KG
Message-ID <[email protected]>
ObjectInitializedEvent is AT portal_factory specific and only triggers
in UI when object is created in portal_factory (to enable abort). So its
better to listen on ObjectCreatedEvent instead.

ObjectInitializedEvent is meant to populate a content with information
before ist edited the first time.

This does not make much sense for images uploaded by tinymce, because
they are created directly with invokeFactory in the parent folder of the
new type w/o portal_factory involved. If you abort initial editing the
uploaded images are still there.

hth Jens

On 2015-09-16 17:44, Joerg Baach wrote:
> Hi,
> 
> I am fiddling around with Images that are uploaded/created by the user
> on my plone site. I handle ObjectInitializedEvents, which works great,
> except for Images uploaded through TinyMCE. TinyMCE uses invokeFactory,
> but does not notify the Zope event system, as recommended (once upon a
> time) by:
> 
> http://docs.plone.org/old-reference-manuals/archetypes/create_event_hook.html#warnings-from-your-future
> 
> I'd like to know if there is a specific reasoning that TinyMCE Uploads
> don't notify - am I missing something? Is this intentional?
> 
> Cheers,
> 
>   Joerg


-- 
Klein & Partner KG, member of BlueDynamics Alliance


------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.