[Checkins] [zopefoundation/Zope] c365cf: Branch for making the Acquisition API understand _...

GitHub noreply at github.com
Tue Feb 26 16:42:29 UTC 2013


  Branch: refs/heads/philikon-aq-and-__parent__
  Home:   https://github.com/zopefoundation/Zope
  Commit: c365cf53d024591af54b31e8045842b42793d2a9
      https://github.com/zopefoundation/Zope/commit/c365cf53d024591af54b31e8045842b42793d2a9
  Author: Philipp von Weitershausen <philipp at weitershausen.de>
  Date:   2006-11-20 (Mon, 20 Nov 2006)

  Log Message:
  -----------
  Branch for making the Acquisition API understand __parent__ pointers so
that things don't necessarily need to be aq-wrapped for security contexts.
Instead they can simply have Zope3-style __parent__ pointers.

This is primarily important for all Five-induced components which currently
have to mix-in some form of Acquisition (and Five has to acrobatically aq-wrap
them during traversal). When this works, Five can decrease in size a lot.


  Commit: 500f325a0834299c1e6e9ceb4ec90a771ec3cc50
      https://github.com/zopefoundation/Zope/commit/500f325a0834299c1e6e9ceb4ec90a771ec3cc50
  Author: Philipp von Weitershausen <philipp at weitershausen.de>
  Date:   2006-11-20 (Mon, 20 Nov 2006)

  Changed paths:
    M lib/python/Acquisition/_Acquisition.c

  Log Message:
  -----------
  get rid of tabs (replaced by 8 spaces as they seemed have been displayed
in the original editing)


  Commit: 45d39938e95c719ce4a83b1f130a8cd6414ef5f5
      https://github.com/zopefoundation/Zope/commit/45d39938e95c719ce4a83b1f130a8cd6414ef5f5
  Author: Philipp von Weitershausen <philipp at weitershausen.de>
  Date:   2006-11-20 (Mon, 20 Nov 2006)

  Changed paths:
    M lib/python/Acquisition/_Acquisition.c

  Log Message:
  -----------
  Warming up: Make acquisition wrappers have __parent__ in addition to aq_parent
(they point to the same thing).


  Commit: f042797b1a19a51747d607290690a4236a037657
      https://github.com/zopefoundation/Zope/commit/f042797b1a19a51747d607290690a4236a037657
  Author: Philipp von Weitershausen <philipp at weitershausen.de>
  Date:   2006-11-20 (Mon, 20 Nov 2006)

  Changed paths:
    M lib/python/Acquisition/_Acquisition.c
    M lib/python/Acquisition/tests.py

  Log Message:
  -----------
  Step 2: Make aq_acquire aware of __parent__ pointers, even if the object
isn't acquisition wrapped.


  Commit: 8ecc02b4c20756eb7d0ed77ccba40553e1625e15
      https://github.com/zopefoundation/Zope/commit/8ecc02b4c20756eb7d0ed77ccba40553e1625e15
  Author: Philipp von Weitershausen <philipp at weitershausen.de>
  Date:   2006-11-20 (Mon, 20 Nov 2006)

  Changed paths:
    M lib/python/Acquisition/_Acquisition.c
    M lib/python/Acquisition/tests.py

  Log Message:
  -----------
  Allow assignment to a wrapper's __parent__.


  Commit: f8bd86c41912e24e68458e1f27c6ac669e6e64ff
      https://github.com/zopefoundation/Zope/commit/f8bd86c41912e24e68458e1f27c6ac669e6e64ff
  Author: Philipp von Weitershausen <philipp at weitershausen.de>
  Date:   2006-11-20 (Mon, 20 Nov 2006)

  Changed paths:
    M lib/python/Acquisition/tests.py

  Log Message:
  -----------
  Add another test that tests acquisition wrappers with containers that have __parent__.


  Commit: 565cf8faced10d086e940743ca2a9ceb7ab4baf8
      https://github.com/zopefoundation/Zope/commit/565cf8faced10d086e940743ca2a9ceb7ab4baf8
  Author: Philipp von Weitershausen <philipp at weitershausen.de>
  Date:   2006-11-20 (Mon, 20 Nov 2006)

  Changed paths:
    M lib/python/Acquisition/_Acquisition.c
    M lib/python/Acquisition/tests.py

  Log Message:
  -----------
  Step 3: Make aq_parent aware of __parent__ pointers.


  Commit: dc720308f584804bb564ed4a47d8ab6c05c3c359
      https://github.com/zopefoundation/Zope/commit/dc720308f584804bb564ed4a47d8ab6c05c3c359
  Author: Philipp von Weitershausen <philipp at weitershausen.de>
  Date:   2006-11-20 (Mon, 20 Nov 2006)

  Changed paths:
    M lib/python/Acquisition/_Acquisition.c

  Log Message:
  -----------
  Cosmetics: adjust a piece of code that I added earlier to the indentation
style of the overall file


  Commit: 43b2e85a68623f1d4cfc60c919a666fc7f699bf8
      https://github.com/zopefoundation/Zope/commit/43b2e85a68623f1d4cfc60c919a666fc7f699bf8
  Author: Philipp von Weitershausen <philipp at weitershausen.de>
  Date:   2006-11-20 (Mon, 20 Nov 2006)

  Changed paths:
    M lib/python/Acquisition/_Acquisition.c

  Log Message:
  -----------
  Cleanup:
* no need to introduce another variable where we check for a __parent__ attribute
* clean up after failed getattr (it throws an AttributeError)
* properly DECREF the __parent__ attribute when it's no longer needed and
  the wrapper that is temporarily created from the __parent__ attribute.


  Commit: 4ff5e3711a44dc2d3c24a8d7bdc8a500faaeeca4
      https://github.com/zopefoundation/Zope/commit/4ff5e3711a44dc2d3c24a8d7bdc8a500faaeeca4
  Author: Philipp von Weitershausen <philipp at weitershausen.de>
  Date:   2006-11-20 (Mon, 20 Nov 2006)

  Changed paths:
    M lib/python/Acquisition/_Acquisition.c
    M lib/python/Acquisition/tests.py

  Log Message:
  -----------
  Step 4: Make aq_get aware of __parent__ pointers.
(Also some comment cosmetics in _Acquisition.c)


  Commit: b62ed2e9efda79f5893fd5ecad91bcc09d2de5d9
      https://github.com/zopefoundation/Zope/commit/b62ed2e9efda79f5893fd5ecad91bcc09d2de5d9
  Author: Philipp von Weitershausen <philipp at weitershausen.de>
  Date:   2006-11-20 (Mon, 20 Nov 2006)

  Changed paths:
    M lib/python/Acquisition/tests.py

  Log Message:
  -----------
  Test aq_parent property as well (in addition to aq_parent function)


  Commit: 140d791e9c38b0a10ee5d0a9808c0652f8e26a15
      https://github.com/zopefoundation/Zope/commit/140d791e9c38b0a10ee5d0a9808c0652f8e26a15
  Author: Philipp von Weitershausen <philipp at weitershausen.de>
  Date:   2006-11-20 (Mon, 20 Nov 2006)

  Changed paths:
    M lib/python/Acquisition/_Acquisition.c
    M lib/python/Acquisition/tests.py

  Log Message:
  -----------
  Step 5: Make aq_chain aware of __parent__ pointers.


  Commit: bad81f85226003765e060588f9161506ca93bac5
      https://github.com/zopefoundation/Zope/commit/bad81f85226003765e060588f9161506ca93bac5
  Author: Hanno Schlichting <hanno at hannosch.eu>
  Date:   2007-05-06 (Sun, 06 May 2007)

  Changed paths:
    M lib/python/Acquisition/tests.py

  Log Message:
  -----------
  Added a test to Acquisition that shows the current segmentation fault problem, when Acquisition goes in circles.


  Commit: ecab0591dd46bb4285ae1d4be0ba34247cb5e457
      https://github.com/zopefoundation/Zope/commit/ecab0591dd46bb4285ae1d4be0ba34247cb5e457
  Author: Hanno Schlichting <hanno at hannosch.eu>
  Date:   2007-06-01 (Fri, 01 Jun 2007)

  Changed paths:
    M lib/python/Acquisition/_Acquisition.c
    M lib/python/Acquisition/tests.py

  Log Message:
  -----------
  First attempt to fix 'Acquisition problem' when encountering cyclic hierarchies via __parent__ pointers. [hannosch, nouri]


  Commit: f6f542a269932ae70d09852b4d742fb475bc4d93
      https://github.com/zopefoundation/Zope/commit/f6f542a269932ae70d09852b4d742fb475bc4d93
  Author: Hanno Schlichting <hanno at hannosch.eu>
  Date:   2007-06-17 (Sun, 17 Jun 2007)

  Changed paths:
    M lib/python/Shared/DC/Scripts/Bindings.py

  Log Message:
  -----------
  Added comment that marks the place in UnauthorizedBinding where the one test failure happens in test_bound_used_context_method_w_roles and why that might happen.


  Commit: 5fbc2fd14aeb36f1e322a42fee398cc5c27c1c99
      https://github.com/zopefoundation/Zope/commit/5fbc2fd14aeb36f1e322a42fee398cc5c27c1c99
  Author: Hanno Schlichting <hanno at hannosch.eu>
  Date:   2007-06-17 (Sun, 17 Jun 2007)

  Changed paths:
    M lib/python/Shared/DC/Scripts/Bindings.py

  Log Message:
  -----------
  Note result from comparing the code with Zope trunk.


  Commit: 9cd833ae5f10371793f2baa3268caf62a3d579e7
      https://github.com/zopefoundation/Zope/commit/9cd833ae5f10371793f2baa3268caf62a3d579e7
  Author: Hanno Schlichting <hanno at hannosch.eu>
  Date:   2007-06-18 (Mon, 18 Jun 2007)

  Changed paths:
    M lib/python/Shared/DC/Scripts/Bindings.py

  Log Message:
  -----------
  Found and fixed the you_lose problem found during tests for the UnauthorizedBinding. We define our own __parent__ method on it now. See more explanation in the comment.


  Commit: be615b28f8e5cd142c735dad69b1caa413a004fa
      https://github.com/zopefoundation/Zope/commit/be615b28f8e5cd142c735dad69b1caa413a004fa
  Author: Hanno Schlichting <hanno at hannosch.eu>
  Date:   2007-06-24 (Sun, 24 Jun 2007)

  Changed paths:
    M lib/python/Shared/DC/Scripts/Bindings.py

  Log Message:
  -----------
  Turned method into a property, as per philiKON's suggestion.


  Commit: ad927df4143132852f56ba1c4d2ac9e746c8b423
      https://github.com/zopefoundation/Zope/commit/ad927df4143132852f56ba1c4d2ac9e746c8b423
  Author: Hanno Schlichting <hanno at hannosch.eu>
  Date:   2007-06-24 (Sun, 24 Jun 2007)

  Changed paths:
    M lib/python/Shared/DC/Scripts/Bindings.py

  Log Message:
  -----------
  Read that mail again, we agreed on raising an AttributeError instead of returning None.


Compare: https://github.com/zopefoundation/Zope/compare/c365cf53d024^...ad927df41431


More information about the checkins mailing list