1. 10 Jun, 2003 2 commits
    • Shane Hathaway's avatar
      Merged shane-security-policy-branch. · 6982b7b3
      Shane Hathaway authored
      The Zope security policy now raises Unauthorized for all denied
      access.  This is designed to make it easier to diagnose problems in
      security settings, since the Unauthorized error will propagate to
      something that can display or log the error.
      
      All 2000+ of the Zope unit tests pass with this change, but I suspect
      there may be code that expects the security policy to return 0 instead
      of raising Unauthorized.  If any severe issues surface, we can revert
      this change.
      6982b7b3
    • Shane Hathaway's avatar
      Fixed a potential Python 2.2+ bug and tidied the code slightly. · 4b834fed
      Shane Hathaway authored
      In Python 2.2 and above, getattr operations distinguish
      AttributeErrors from other kinds of operations.  But Wrapper_acquire
      was masking some errors as AttributeErrors.  Fixed.
      
      Added a comment explaining apply_filter, added curly brackets to
      disambiguate nesting in Wrapper_acquire, and re-indented to clarify.
      4b834fed
  2. 09 Jun, 2003 3 commits
  3. 08 Jun, 2003 1 commit
    • Andreas Jung's avatar
      · 59d8d375
      Andreas Jung authored
            - Collector #928: DateIndex ignored timezones when indexing and
              querying
      59d8d375
  4. 07 Jun, 2003 1 commit
  5. 06 Jun, 2003 1 commit
  6. 05 Jun, 2003 1 commit
  7. 30 May, 2003 4 commits
  8. 28 May, 2003 5 commits
  9. 27 May, 2003 9 commits
  10. 25 May, 2003 3 commits
  11. 23 May, 2003 4 commits
  12. 19 May, 2003 1 commit
  13. 18 May, 2003 2 commits
  14. 17 May, 2003 1 commit
  15. 15 May, 2003 1 commit
    • Tim Peters's avatar
      testLen(): This test implicitly relied on completing in less than 1 · 26ec18cd
      Tim Peters authored
      second of wall-clock time.  That's plenty, except when, e.g., a
      burst of network activity takes the CPU away for a second.  Jeremy saw
      it fail once yesterday when running Zope-2_6-branch pre-release tests,
      and that was unfortunate timing <wink>.  I found that running it in a loop
      eventually caused a spurious failure whenever I ran it too.
      
      So, in just this test, boosted the timeout by a factor of 60.  This should
      make it astronomically unlikely to fail.  Also sped the test by removing
      unneeded .keys() and .sort() calls.  Also switched from using Python's
      assert stmt to unittest's assertEqual() facility.
      26ec18cd
  16. 14 May, 2003 1 commit
    • Shane Hathaway's avatar
      Fixed a memory leak in TALES. If an exception occurs in a repeat block, a · a6cfcc00
      Shane Hathaway authored
      cycle is left behind that includes a SafeMapping, and SafeMappings are not
      aware of GC, therefore the cycle can't be collected.  Iterator is also in the
      cycle, however, and it does not need a strong reference to the Context object,
      since the Context refers to the Iterator.  So Iterators now refer to Context
      through a weak reference.
      a6cfcc00