- 21 Nov, 2002 1 commit
-
-
Martijn Pieters authored
applied to ttheir modules. When trusted code or module refreshes ask for a ModuleSecurityInfo object that was already applied, previously a new one would be created, including new ones for the parent packages. This could cause declartion for *other* packages to be removed when this new Info object is reapplied later on.
-
- 20 Nov, 2002 2 commits
-
-
Jeremy Hylton authored
Change one final use of the old regex module to ts_regex.
-
Jeremy Hylton authored
-
- 19 Nov, 2002 11 commits
-
-
Tim Peters authored
know whether this file *should* be used anymore, though. But if it isn't, I would have expected "someone" to have removed it by now.
-
Tim Peters authored
-
Barry Warsaw authored
-
Barry Warsaw authored
-
Barry Warsaw authored
just slows the tests down (because we might have to wait up to 10 seconds for the thread to cleanly exit).
-
Barry Warsaw authored
BerkeleyTestBase, one of the base classes is superfluous. FullOpenCloseTest: New class to make sure that the checkpointing thread gets properly shutdown.
-
Barry Warsaw authored
changed.
-
Barry Warsaw authored
DB_QUEUE tables. close(): We can really simplify this and make it more robust for when we add new tables, by relying on the fact that the base class maintains its own list of opened tables, and the base class close() method closes them in turn. autopack(): Default the gc argument to False. _collect_objs(), _mark(), _sweep(): Add an escape hatch for the pack operation inside the inner loops of each of these methods. That way, we don't have to wait until the loops are finished to exit the pack operation, if stop() has been requested by the main thread. _Autopack: Use the _WorkThread base class.
-
Barry Warsaw authored
the mark phase and during the sweep phase. But this doesn't play nicely with the escape hatch for pack, since if we raise a PackStop, it's fine if we truncate the mark queue but not if we truncate the sweep queue. So the latter is now separated into the delqueue table. Also, use the new extended _setupDB() arguments for the DB_QUEUE tables. close(): We can really simplify this and make it more robust for when we add new tables, by relying on the fact that the base class maintains its own list of opened tables, and the base class close() method closes them in turn. autopack(): Default the gc argument to False. _collect_revs(), _collect_objs(), _mark(), _sweep(): Add an escape hatch for the pack operation inside the inner loops of each of these methods. That way, we don't have to wait until the loops are finished to exit the pack operation, if stop() has been requested by the main thread. AUTOPACK_CHECK_SLEEP removed. _Autopack: Use the _WorkThread base class.
-
Barry Warsaw authored
-
Barry Warsaw authored
thread, instead of doing it every nth ZODB transaction. We can actually provide a base class for both the checkpointing and autopacking threads here. Changes here include: SLEEP_TIME: how often (in seconds) a background thread should wake up to see if there's work to do. True, False: Add these for older Pythons. PackStop: New class that acts as an escape hatch for pack operations. BerkeleyConfig: - change interval from 100 to 0. Now that this controls the checkpointing thread, the current default is to not spawn the thread. I'm probably going to change this once I figure out what a good value is. BerkeleyBase: - __init__(): Start the checkpointing thread if interval > 0 - _setupDB(): Add some additional keyword args so that the QUEUE style tables can use this convenience method too. - close(): Be sure to stop and join the checkpointing thread - _docheckpoint(): Removed - _withtxn(): Catch PackStop escape hatch exceptions. This one aborts the current Berkeley transaction but eats the exception. Also, don't call _docheckpoint() here. - docheckpoint(): New method which the checkpointing threads can call. env_from_string(): use DB_RECOVER_FATAL for autorecovery on open. _WorkThread: New base class for the checkpointing and autopacking threads. _CheckPoint: The common checkpointing thread class.
-
- 18 Nov, 2002 1 commit
-
-
Jeremy Hylton authored
Also perform whitespace normalization on cvs log comment.
-
- 15 Nov, 2002 3 commits
-
-
Casey Duncan authored
parent to allow the parent to acquire things like CMF tools during lookup. Note that this relies on the unwritten assumption that __getitem__ will not acquire things as getattr will.
-
Barry Warsaw authored
method which is required by recovery. We can initialize the last tid from the txnoids table, and then keep it updated in _finish().
-
Barry Warsaw authored
sense for Berkeley storages.
-
- 14 Nov, 2002 4 commits
-
-
Guido van Rossum authored
-
Fred Drake authored
Update information about the version of Python required -- Python 2.2.2 fixed a bug that seriously affected some Zope installations that used 2.2.1.
-
Fred Drake authored
Update information about the version of Python required -- the trunk is now in the new world (by Papal edict; don't shoot the messenger!).
-
Barry Warsaw authored
for an object revision in objrevs got collected away when the entire object was refcounted to zero. Be more defensive about find and deleting these records. Also, truncate the packtime table before writing the new record, to maintain the database invariant that there is only allowed one entry in this table at a time.
-
- 13 Nov, 2002 8 commits
-
-
Barry Warsaw authored
-
Martijn Pieters authored
*first* entry (and not the last one as assumed before). - Adjust test to create a big file that will have a Pdata entry of smaller size - Fix pdata_map lookups with first-entry-size in mind.
-
Jeremy Hylton authored
-
Jeremy Hylton authored
-
Jeremy Hylton authored
Remove unnecessary Py_FatalError() calls on failed module import.
-
Martijn Pieters authored
-
Toby Dickenson authored
Merged remaining changes from toby-clean-shutdown-branch. This resolves the overnight problem where storages were not closed if Zope is shut down using the ZMI, and the long-standing problem where storages were closed too soon when shut down using a signal
-
Andreas Jung authored
the Zope profiling support
-
- 12 Nov, 2002 10 commits
-
-
Jeremy Hylton authored
-
Guido van Rossum authored
-
Jeremy Hylton authored
-
Jeremy Hylton authored
-
Jeremy Hylton authored
#include <string.h> is implied by ExtensionClass.h, because it includes Python.h. Also, it is an error to include standard headers before Python.h.
-
Jeremy Hylton authored
#include <stdio.h> is implied by ExtensionClass.h, because it includes Python.h. Also, it is an error to include standard headers before Python.h. Bugfix candidate.
-
Barry Warsaw authored
-
Toby Dickenson authored
dont close the storages mid-transaction. need to check whether we need to close them at the end of z2.py
-
Barry Warsaw authored
New `catdel' command which deletes the entire catalog in one transaction. Add a new global VERBOSE flag instead of passing around the printstat argument everywhere. This also lets us use getopt for proper option parsing, and add a -v/--verbose flag for setting that global. Added a usage() function.
-
Martijn Pieters authored
two values are tainted failed because no implicit conversion to a list took place.
-