- 16 Mar, 2001 40 commits
-
-
Barry Warsaw authored
-
Barry Warsaw authored
storage. Some of the internal operations have changed, coding style is a bit less compact. Other substantive changes include: - The implementation now uses the CommitLog.PacklessLog temporary transaction log class. This avoids the problem with tempfiles being unlinked as soon as they are created (and then lost if the process exits abnormally). - Minimal is now derived from BerkeleyBase instead of Base. - Some updates to use the latest PyBSDDB API, e.g. get() instead of has_key(). - The table names have changed to 'serials' and 'pickles'. - tpc_vote() is now supported. BerkeleyBase.tpc_vote() calls Minimal._vote() and this is where the commit log is placed into the promised state. - The semantics are now that when the transaction successfully commits, the commit log file is deleted. This may need to be changed to either a truncation-on-close, or scribble-zero-in-header approach for performance reasons.
-
Barry Warsaw authored
and Minimal Berkeley storages. It derives from ZODB.BaseStorage.BaseStorage and supports the tpc_vote() method wrapper calling _vote() on the derived class. CommitLog.py -- contains the temporary transaction commit log file classes used to hold transaction changes until they can be committed to Berkeley.
-
Barry Warsaw authored
test_commitlog.py tests creation, deletion, state transitions, low-level and high-level APIs of the CommitLog and derived classes. test_create.py tests creation of the Berkeley files when a storage is created. test_virgin.py tests that a newly minted Berkeley storage is empty, and tests the first commits to such a new storage.
-
Barry Warsaw authored
-
Fred Drake authored
Correct an error in the output relating to implicit closure of <dt> elements.
-
Fred Drake authored
Revert an accidental re-indenting of a line that occurred in revision 1.8 that introduced a bug in the implicit closing of list- and table-related elements.
-
Fred Drake authored
Move all the test input/output files around so the test/ directory is available for Zope-style regression tests; these will appear later.
-
Guido van Rossum authored
break the use from TALParser.
-
Fred Drake authored
Update to reflect the new support for SGML declaration syntax.
-
Fred Drake authored
.handle_decl(): Push SGML declarations into the instruction stream.
-
Fred Drake authored
Change RuntimeError to SGMLParseError, which carries line number and offset information. Add support for SGML declaration syntax (<!....>) to some reasonable degree. This does not support everything allowed in SGML, but should work with "real" HTML (internal subset in a DOCTYPE is not handled). The content of the declaration is passed to the .handle_decl() method, which can be overridden by subclasses.
-
Guido van Rossum authored
-
Jim Fulton authored
-
Guido van Rossum authored
-
Guido van Rossum authored
Remove the do_text() method, this instruction is no longer used.
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
Also slightly refactored the starttag optimization code.
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
cStringIO.
-
Guido van Rossum authored
-
Guido van Rossum authored
items and start and end tags without attributes into a single rawtext item. We could do more, by also changing start tags with only plain (non-substituted) attributes into rawtext and collapsing. After breakfast.
-
Guido van Rossum authored
- add getCode() interface to TALGenerator - remove premature optimization from emitRawText() - rework unEmitNewlineWhitespace() so it works with unoptimized code - use getCode() in HTMLTALParser and TALParser
-
Guido van Rossum authored
-
Guido van Rossum authored
Move quote() function here from TALInterpreter.
-