Re: Why does TinyMCE Upload not notify the Zope event system?
Sean Upton <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <CANjV-2NQaSq04RJZeeC-S-RTRPJein12iiMF+2PsQUN14V7ThQ@mail.gmail.com> |
I don't think this is exempt from events, make sure you ware subscribing to the right events in your handler hookup. invokeFactory will notify IObjectCreatedEvent and IObjectAddedEvent for the new uploaded object, and IContainerModifiedEvent for its parent folder: https://github.com/zopefoundation/Products.CMFCore/blob/c9d6d02c1ee1a03868d94a16b70e4a8900494250/Products/CMFCore/TypesTool.py#L558 On Wed, Sep 16, 2015 at 9:44 AM, Joerg Baach <[email protected]> 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 > > > ------------------------------------------------------------------------------ > Monitor Your Dynamic Infrastructure at Any Scale With Datadog! > Get real-time metrics from all of your servers, apps and tools > in one place. > SourceForge users - Click here to start your Free Trial of Datadog now! > http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 > _______________________________________________ > Plone-developers mailing list > Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/plone-developers > ------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Plone-developers mailing list Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/plone-developers