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

Joerg Baach <[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <[email protected]>
Hi Sean,

thanks a lot for explaination. I will trz if I can make use of the
container events.

Johannes: the code in question can be found at

https://github.com/plone/Products.TinyMCE/blob/master/Products/TinyMCE/adapters/Upload.py#L134

Cheers,

  Joerg

On 16.09.2015 22:47, Sean Upton wrote:
> 
> 
> On Wed, Sep 16, 2015 at 1:44 PM, Johannes Raggam <[email protected]
> <mailto:[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
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.