An error occurred fetching the project authors.
  1. 19 Feb, 2004 1 commit
    • Jeremy Hylton's avatar
      Merge zope3-zodb3-devel-branch to the Zope head (Zope 2 head). · d5327c25
      Jeremy Hylton authored
      Add support for persistent weak references.  The implementation is in
      pure Python right now; coptimizations.c was disabled.  We need to
      restore the C code before going to beta.
      
      The persistent reference format has evolved a little, but the code on
      the branch doesn't document it.  The ref is usually a an oid-class
      pair, where the class is an actual class object.  It can also be a
      list, for weak references, or a bare oid.
      
      Add support for data managers written against the ZODB4 transaction
      API.  The transaction implementation provides an adapter between the
      two interfaces.  There's a substantial doctest test suite for this
      feature.
      
      Add add() method to Connection to explicitly add an object and get it
      an assigned _p_oid.  It's possible to add an unconnected object; this
      isn't recommended, because it will be lost at pack time.
      d5327c25
  2. 18 Feb, 2004 1 commit
    • Jeremy Hylton's avatar
      Rename transactionalUndo() to undo(). · 3b8c30bb
      Jeremy Hylton authored
      The old undo was not used by Zope and shouldn't have been used by any
      other client.  The newly named undo() is the preferred version of
      undo.
      
      XXX DemoStorage didn't implement transactionalUndo, so now it doesn't
      implementation undo() at all.  We need to replace it with the demo
      storage from ZODB4.
      
      There are a few changes related to ZODB4 removal in this checkin.
      3b8c30bb
  3. 24 Dec, 2003 1 commit
  4. 28 Nov, 2003 1 commit
  5. 03 Oct, 2003 1 commit
  6. 02 Oct, 2003 1 commit
  7. 30 May, 2003 1 commit
  8. 01 May, 2003 1 commit
  9. 17 Mar, 2003 1 commit
  10. 22 Jan, 2003 1 commit
  11. 21 Jan, 2003 1 commit
  12. 06 Dec, 2002 2 commits
    • Jeremy Hylton's avatar
      Fix subtle bug in restore(). · 0ce17b49
      Jeremy Hylton authored
      The _txn_find() must not stop at the pack boundary when it is called
      by restore().  It was originally written for _txn_undo() which isn't
      supposed to undo to a transaction across a pack.  But it should be
      legal to restore() a transaction with a reference to a data record in
      a transaction that was packed.
      
      Fix by adding stop_at_pack flag to _txn_find() and add tests of this
      behavior for FileStorage.
      0ce17b49
    • Jeremy Hylton's avatar
      Synch with ZODB4 tests. · 36b04214
      Jeremy Hylton authored
      Almost entirely concerned with adding ZPL blocks.
      36b04214
  13. 18 Nov, 2002 1 commit
  14. 15 Nov, 2002 1 commit
  15. 30 Oct, 2002 1 commit
  16. 14 Aug, 2002 1 commit
  17. 08 Aug, 2002 1 commit
    • Jeremy Hylton's avatar
      Refactor test cleanup to use removefs() helper function. · 46d79eae
      Jeremy Hylton authored
      StorageTestBase.removefs() will attempt to remove files with all the
      possible extensions that FileStorage will create.  It will raise
      os.error for any error except ENOENT.
      
      Remove many variants of removefs() implemented in the various test
      suites.
      46d79eae
  18. 25 Jan, 2002 1 commit
  19. 24 Jan, 2002 1 commit
  20. 23 Jan, 2002 2 commits
  21. 22 Jan, 2002 1 commit
    • Jeremy Hylton's avatar
      Don't use self._transaction. · 80879e0b
      Jeremy Hylton authored
      It's not thread-safe to store a Transaction() object in an instance
      variable without some sort of locking.  Nor is it desirable to use the
      same transaction object for more than one transaction.
      
      So get rid of all uses of self._transaction and replace with a local
      variable.
      80879e0b
  22. 21 Jan, 2002 1 commit
  23. 02 Nov, 2001 1 commit
  24. 05 Oct, 2001 1 commit
  25. 04 Oct, 2001 1 commit
  26. 28 Sep, 2001 1 commit
  27. 23 Aug, 2001 1 commit
  28. 02 May, 2001 1 commit
    • Jeremy Hylton's avatar
      Fix tests to work correctly with conflict resolution. · 58cfe930
      Jeremy Hylton authored
      Add new tests for conflict resolution.
      
      The old blanket try-except for conflict resolution was hiding some
      bugs caused by the pickles used in the test suite.  The conflict
      resolution code imposes some restrictions on the format of pickles.
      Basically, the conflict resolution requires that the storage API only
      accept a pickles that constructed according to the ZODB rules.
      
      XXX This new restriction sounds unfortunate, but it would require a
      substantial change to conflict resolution to remove it.
      
      The key changes to the test suite are to store only persistent objects
      and to format the pickles using the standard ZODB format.  All tests
      now use ZODB.tests.MinPO.MinPO instances for data.  The pickling is
      down with zodb_pickle() and zodb_unpickle() defined in
      StorageTestBase.
      
      Add conflict resolution tests to testFileStorage.  (They pass.)
      58cfe930
  29. 20 Apr, 2001 1 commit
  30. 19 Apr, 2001 1 commit
  31. 11 Apr, 2001 1 commit