An error occurred fetching the project authors.
- 19 Feb, 2004 1 commit
-
-
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.
-
- 18 Feb, 2004 1 commit
-
-
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.
-
- 24 Dec, 2003 1 commit
-
-
Jeremy Hylton authored
-
- 28 Nov, 2003 1 commit
-
-
Jim Fulton authored
-
- 03 Oct, 2003 1 commit
-
-
Jeremy Hylton authored
-
- 02 Oct, 2003 1 commit
-
-
Jeremy Hylton authored
-
- 30 May, 2003 1 commit
-
-
Toby Dickenson authored
New tests covering corner cases in the storage API, derived from code coverage analysis of DirectoryStorage. FileStorage currently fails checkCreationUndoneGetSerial
-
- 01 May, 2003 1 commit
-
-
Jeremy Hylton authored
-
- 17 Mar, 2003 1 commit
-
-
Jeremy Hylton authored
-
- 22 Jan, 2003 1 commit
-
-
Barry Warsaw authored
-
- 21 Jan, 2003 1 commit
-
-
Barry Warsaw authored
acts more like what happens when you commit new object revisions using the higher level interface.
-
- 06 Dec, 2002 2 commits
-
-
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.
-
Jeremy Hylton authored
Almost entirely concerned with adding ZPL blocks.
-
- 18 Nov, 2002 1 commit
-
-
Jeremy Hylton authored
XXX Not sure if berkeley still works.
-
- 15 Nov, 2002 1 commit
-
-
Barry Warsaw authored
zodb3-release branch.
-
- 30 Oct, 2002 1 commit
-
-
Guido van Rossum authored
-
- 14 Aug, 2002 1 commit
-
-
Martijn Pieters authored
-
- 08 Aug, 2002 1 commit
-
-
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.
-
- 25 Jan, 2002 1 commit
-
-
Jeremy Hylton authored
Put the tpc_begin() -> tpc_finish() in a try/except. If an error occurs, abort the current transaction and re-raise the error. It appears that some storages (well, only Standby Storage) has trouble shutting down if a transaction is in progress.
-
- 24 Jan, 2002 1 commit
-
-
Jeremy Hylton authored
1. The exception is in serial, not arg. 2. Must call handle_serials() before tpc_finish(), because handle_serials() may raise an exception that causes the transaction to abort.
-
- 23 Jan, 2002 2 commits
-
-
Jeremy Hylton authored
If supplied, they are stored as metadata on the transaction object. This is helpful for debugging.
-
Jeremy Hylton authored
-
- 22 Jan, 2002 1 commit
-
-
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.
-
- 21 Jan, 2002 1 commit
-
-
Jeremy Hylton authored
-
- 02 Nov, 2001 1 commit
-
-
Jeremy Hylton authored
-
- 05 Oct, 2001 1 commit
-
-
Jeremy Hylton authored
-
- 04 Oct, 2001 1 commit
-
-
Jeremy Hylton authored
-
- 28 Sep, 2001 1 commit
-
-
Jeremy Hylton authored
-
- 23 Aug, 2001 1 commit
-
-
Jeremy Hylton authored
-
- 02 May, 2001 1 commit
-
-
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.)
-
- 20 Apr, 2001 1 commit
-
-
Barry Warsaw authored
-
- 19 Apr, 2001 1 commit
-
-
Barry Warsaw authored
suppresses the pickling of the data. _dostoreNP(): A shortcut for _dostore(..., already_pickled=1)
-
- 11 Apr, 2001 1 commit
-
-
Barry Warsaw authored
unittest.TestCase. It also provides the setUp(), _close(), and tearDown() methods, as well as the _dostore() convenience method.
-