1. 19 Jan, 2003 3 commits
    • Andreas Jung's avatar
      be790b50
    • Andreas Jung's avatar
    • Chris McDonough's avatar
      Instead of referring to user folder by its ZMI-visible username (acl_users) · ca33bdd3
      Chris McDonough authored
      when attempting to get a list of users, use the __allow_groups__ alias.
      This doesn't break anything as it is one of the (unwritten) contracts
      of a user folder to install itself as __allow_groups__ in its container
      (it is canonized in the manage_beforeDelete and manage_afterAdd methods
      of BasicUserFolder, and the traversal machinery refers to a user folder
      by its __allow_groups__ alias exclusively).
      
      It's actually likely that all code in Zope's security machinery that directly
      refers to a user folder by its 'acl_users' alias in this way is wrong.
      
      Referring to the user folder by its __allow_groups__ alias in the security
      machinery exclusively gives us the ability to insert a "proxy" object as
      can act as an intermediary for a "real" UserFolder object, allowing us to
      massage the output from its interface methods as necessary to allow for
      grouping and other tricks.
      ca33bdd3
  2. 18 Jan, 2003 1 commit
    • Shane Hathaway's avatar
      Merge from 2_6 branch: fixed stored acquisition wrappers. · 8a7ff3a5
      Shane Hathaway authored
      Some indexes were storing acquisition wrappers in the cyclic references
      back to the ZCatalog instance.  Removed the acquisition wrappers and
      cleaned up a bad use of apply().  The acquisition wrappers were revealed
      by AdaptableStorage.
      
      There's a second problem, in that indexes are unknowingly storing references
      back to the ZCatalog in an unused attribute.  In the 2_6 branch it's
      hard to fix without breaking things, but on the HEAD there's a better way
      to fix this.  Coming soon, I hope.
      8a7ff3a5
  3. 17 Jan, 2003 2 commits
  4. 16 Jan, 2003 2 commits
  5. 14 Jan, 2003 4 commits
  6. 13 Jan, 2003 3 commits
  7. 11 Jan, 2003 1 commit
  8. 10 Jan, 2003 3 commits
  9. 09 Jan, 2003 2 commits
  10. 07 Jan, 2003 1 commit
    • Guido van Rossum's avatar
      Several changes, mostly to speed up logging when : · 354cd386
      Guido van Rossum authored
      - Cache the translations from severity to level and string in dicts,
        so these are normally done with a single dict.get() call rather than
        a Python function call.
      
      - Extract the PEP 282 level first, and check it against the effective
        level of the logger, so we can take an early exit if the logger
        won't handle the event.
      
      - Got rid of textwrap.  It slows things down, can frustrate grepping
        programs, and wasn't effective unless you were using Python 2.3
        anyway.
      
      - Got rid of the addHandler(NullHandler()) (seems like superstition).
      
      - Got rid of the log_format class variable (YAGNI).
      354cd386
  11. 06 Jan, 2003 6 commits
  12. 05 Jan, 2003 3 commits
  13. 03 Jan, 2003 2 commits
    • Barry Warsaw's avatar
      Here's a principled way to determine whether the BDBStorages are · faf72340
      Barry Warsaw authored
      available or not, and also fixes to all the tests so they won't crap
      out or complain if not.
      
      To test whether these storages are avialable (including all package
      dependencies), do:
      
      import BDBStorage
      if BDBStorage.is_available:
          # okay to use
      
      Also, in BDBStorage/__init__.py do some cross-platform compatibility
      for the bsddb module; in Python 2.3 we can just use the built-in
      module, but in earlier Pythons we have to use bsddb3.  Now you can
      just use "from BDBStorage import db" to get the proper db object.
      faf72340
    • Jeremy Hylton's avatar
      Remove CVS history from this file. · 4ac9aff7
      Jeremy Hylton authored
      4ac9aff7
  14. 02 Jan, 2003 1 commit
  15. 22 Dec, 2002 3 commits
  16. 20 Dec, 2002 1 commit
  17. 19 Dec, 2002 2 commits