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-2NN0ZZVXCbk9eifN4_n9zvi=tz3uL-vwntMpNCYtvfUMw@mail.gmail.com>
On Wed, Sep 16, 2015 at 1:44 PM, Johannes Raggam <[email protected]> wrote:

> Do you mean Products.TinyMCE or the Plone 5 version? Can you point me
> to the code, where invokeFactory within the TinyMCE related code is
> called?
>

For Plone 4: Products.TinyMCE's upload does in fact use invokeFactory, but
invokeFactory (via all FactoryTypeInformation subclasses, including
Dexterity's) notifies events on content construction within container.

For Plone 5, plone.app.content.browser.file.FileUploadView uses
plone.dexterity.utils.createContentInContainer(), which does notify
IObjectCreatedEvent, and via the
OFS.ObjectManager.ObjectManager._setObject() method IObjectAddedEvent is
notified.

Sean

------------------------------------------------------------------------------
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
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.