[Checkins] [zopefoundation/Zope] af7178: Re-add example section for how to use TemporaryFol...

GitHub noreply at github.com
Wed May 16 17:01:09 CEST 2018


  Branch: refs/heads/add_app_to_product_context
  Home:   https://github.com/zopefoundation/Zope
  Commit: af71784f6cbb16b4d39eab3a8248764fe2de2c62
      https://github.com/zopefoundation/Zope/commit/af71784f6cbb16b4d39eab3a8248764fe2de2c62
  Author: Robert Buchholz <rbu at goodpoint.de>
  Date:   2018-05-16 (Wed, 16 May 2018)

  Changed paths:
    M src/Zope2/utilities/skel/etc/wsgi.conf.in

  Log Message:
  -----------
  Re-add example section for how to use TemporaryFolder


  Commit: 58a7b1854efe86a66a3bd6b61893e143bfb0b537
      https://github.com/zopefoundation/Zope/commit/58a7b1854efe86a66a3bd6b61893e143bfb0b537
  Author: Robert Buchholz <rbu at goodpoint.de>
  Date:   2018-05-16 (Wed, 16 May 2018)

  Changed paths:
    M src/App/ProductContext.py
    M src/OFS/Application.py

  Log Message:
  -----------
  Hand Application object to Products through ProductContext

Products receive the ProductContext as the first parameter
to their initialize() method when they are loaded. This context used to
contain a reference to the app until it was removed during Zope 4
preparations. The Application was, however, never exposed through an
API.

Access to the API is necessary for certain products that automatically
add objects to the Application when they are loaded, such as the
Products.Sessions and Products.TemporaryFolder. This used to happen in
OFS.Application in Zope 2, but was moved out when the products became
indepentent.


Compare: https://github.com/zopefoundation/Zope/compare/af71784f6cbb^...58a7b1854efe
      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the checkins mailing list