- 24 Oct, 2001 3 commits
-
-
Barry Warsaw authored
situation.
-
Jeremy Hylton authored
Didn't write a more interesting test in checkAbortVersion: # XXX Not sure I can write a test for getSerial() in the # presence of aborted versions, because FileStorage and # Berkeley storage give a different answer. I think Berkeley # is right and FS is wrong.
-
Jeremy Hylton authored
BaseStorage implements this in terms of modifiedInVersion() and load(). Other storages may (perhaps even should) implement it more efficiently.
-
- 22 Oct, 2001 4 commits
-
-
Andreas Jung authored
now a full success :-)
-
Jeremy Hylton authored
(Minor change to tb handling to avoid unnecessary binding to None for v and tb.)
-
Jeremy Hylton authored
Prevents memory leak for each _restore_index() call.
-
Jeremy Hylton authored
-
- 19 Oct, 2001 3 commits
-
-
Andreas Jung authored
exceptions (this error occured when trying to access an OOBTree with a string with non-ascii encoding e.g. latin1. In this case Python raises a Unicode exception that has not been caught and not propagated to the application.
-
Andreas Jung authored
-
Shane Hathaway authored
-
- 18 Oct, 2001 1 commit
-
-
Jeremy Hylton authored
Replace explicit equality tests in assert statements, which aren't executed when running python -O, when self.assertEquals(), which also has the side effect of producing better error messages when the test fails.
-
- 17 Oct, 2001 1 commit
-
-
Tres Seaver authored
o Land unit test cleanup from branch. o Known breakage as of 2001/10/17: - TAL test suite is very broken (TAL is currently suppressed in lib/python/.testinfo). - AccessControl tests don't run if run first; lib/python/.testinfo pushes them to the end of the queue, at which point they *do* run. Global side effects suck! - lib/python/BTrees/testBTreesUnicode.py: weird flakiness around comparison of ASCII and Unicode strings; breaks in different ways under Python 2.1 and 2.2. - lib/python/Products/PageTemplates/tests: three tests break due to security asserctions.
-
- 15 Oct, 2001 3 commits
-
-
Jeremy Hylton authored
-
Jeremy Hylton authored
-
Andreas Jung authored
strings as keys
-
- 10 Oct, 2001 2 commits
-
-
Jeremy Hylton authored
-
Jeremy Hylton authored
Add getLogFile() method that provides hook for SpreadLog subclass.
-
- 08 Oct, 2001 5 commits
-
-
Jeremy Hylton authored
-
Jeremy Hylton authored
-
Jeremy Hylton authored
-
Jeremy Hylton authored
This change includes a minor change to semantics for reinitialization(). There are three chief performance-related changes: - Do not check whether logging is enabled in the actual log call. Instead check enviroment variables when the module is imported and whenever an explicit initialize() call is made. This might seem like it limits the user's ability to turn logging on and off, but I don't believe it does. Logging is controlled by environment variables. Once the Python script is working, the environment variables won't change. This change makes the case of no logging fast, instead of slow. - Each log call goes through a method on the stupid_log_write() object instead of through __call__(). It's much faster to call a method than an instance. - Use "print >> file" rather than "file.write()". It appears to be a bit faster. Replaced _set_stupid_dest() with _set_log_dest().
-
Jeremy Hylton authored
-
- 05 Oct, 2001 11 commits
-
-
Jeremy Hylton authored
-
Jeremy Hylton authored
Also, reformat code using guidlines from the Friends of Whitespace. Fix newTimeStamp() so that it always returns a timestamp. XXX still not sure that it works.
-
Jeremy Hylton authored
-
Jeremy Hylton authored
-
Jeremy Hylton authored
Replace long multiplies with long shifts in U64() and u64().
-
Jeremy Hylton authored
-
Jeremy Hylton authored
- use update() method where appropriate - don't pass None as second argument to get(). it's the default. - consistent space after comma between args
-
Jeremy Hylton authored
In tpc_vote() rename local variable id to tid. Add doc string to read_index(), helpful but not complete yet. In read_index(), replace an iteration over the tindex for each transaction with a few calls that do the work with much less overhead.
-
Jeremy Hylton authored
Also, add an open() method to open the storage. Used by PersistentStorage, too.
-
Jeremy Hylton authored
-
Jeremy Hylton authored
-
- 04 Oct, 2001 7 commits
-
-
Jeremy Hylton authored
-
Jeremy Hylton authored
Raise correct exceptions in abortVersion() and commitVersion(). Spread out some code that had the vertical white space removed. Fix the versions() implementation so that it works if the optional max argument is not passed by the caller. Fix commitVersion() so that it works for committing from one version to the other. The previous version always committed to the non-version data even if a destination version was specified. Fix typos.
-
Jeremy Hylton authored
documented exceptions. Remove a few of the old #JF# comments that explain why some old, commented out test code didn't work. XXX still need to do more. Extend a few tests with more checks of accessing non-version data via versions that have no changes in them. Comment -> doc string.
-
Jeremy Hylton authored
-
Jeremy Hylton authored
-
Jeremy Hylton authored
It's possible for a storage to not support historical revisions, in which case this test can't work. Also make comment at top of BasicStorage into a doc string.
-
Jeremy Hylton authored
Replace a string-based exception (a string literal which was broken even for string-based exceptions) with a class-based exception. Raise a VersionCommitError is source and dest versions were the same.
-