- 10 Apr, 2001 5 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
- that the TALcode version of the macro is the same as that of the main program; - that the mode (html or xml) of the macro is the same as that of the main program. If either of these tests fails, raise METALError().
-
Guido van Rossum authored
-
Guido van Rossum authored
Added three new inquiries for TALcode programs: isCurrentVersion(), getProgramVersion(), and getProgramMode().
-
Guido van Rossum authored
-
- 09 Apr, 2001 23 commits
-
-
Amos Latteier authored
-
Guido van Rossum authored
-
Guido van Rossum authored
generating HTML, and "/>" for XML, instead of always using "/>". This is necessary for proper XHTML generation.
-
Guido van Rossum authored
self.endsep to the proper value there.
-
Barry Warsaw authored
this fixes the Windows crashes? checkSimpleTransactionalUndo(): Modify tests to check zombification and subsequent re-birth of objects via transactionalUndo().
-
Barry Warsaw authored
works by writing a metadata record which contains a special lrevid (pickle pointer). Upon loading a zombified object, naive applications will get a KeyError as would be expected for loading a non-existant object. The actual exception though is ObjectDoesNotExist -- derived from KeyError -- which contains a `revid' attribute pointing to the revision of the object which zombified it. Thus, by undoing this revid, the object can be reborn to its initial state. Specifically, ObjectDoesNotExist: New exception, derived from KeyError. load(): If an object's metadata has an lrevid with the special `dne' value (64-bits full of 1's), the object is a zombie and ObjectDoesNotExist is raised. transactionalUndo(): If prevrevid for the revision we're undoing is zero, it means that we're undoing the object's creation. Instead of raising an UndoError, write a new metadata record containing the original record, but with lrevid == dne, and prevrevid == tid. This change also contains initial (untested) support for pack(), specifically, _zaprevision(): pack doesn't happen in a transaction, so remove the txn argument. Add the referencesf argument, passed from the pack() call. pack(): Initial implementation. Seems fairly simple really (too simple? ;)
-
Fred Drake authored
XMLParserTestCase.check_bad_nesting(): Use self.fail() instead of naming AssertionError directly; how PyUnit deals with the error is it's problem, not ours. ;-)
-
Andreas Jung authored
-
Andreas Jung authored
-
Andreas Jung authored
-
Andreas Jung authored
-
Fred Drake authored
Fix two buffer boundary issues; this restores this to passing the test suite without any large restructuring. Guido & I will be looking at how this is structured later; buffer boundary checks will make this nearly unmaintainable if we can't bring about a better structure to the code. (Better tests would also be nice!)
-
Guido van Rossum authored
character at a time. This uncovers two new bugs in HTMLParser that I'm going to attack next.
-
Guido van Rossum authored
-
Guido van Rossum authored
default true. When this is false, structure insertion without attribute replacement does not parse the inserted text. This is (expected to be) much faster, but allows invalid HTML/XML to be inserted, so it is off by default. Evan can choose to turn this on in ZPT if he's more concerned about efficiency than about correctness. :-)
-
Guido van Rossum authored
<script> and <style> elements aren't mangled. By nature of the parser, bare < and & cannot occur in the input data (the parser raises an exception when it encounters these); bare > is harmless.
-
Evan Simpson authored
-
Guido van Rossum authored
buffer boundaries in the middle of the cdata stretch. Fixed this, and added a clear_cdata_mode() callback after a successful </endtag>. (I hope this doesn't break other things. This parser is getting horribly ad-hoc. :-( )
-
Guido van Rossum authored
code.
-
Evan Simpson authored
-
Evan Simpson authored
-
Evan Simpson authored
-
- 07 Apr, 2001 12 commits
-
-
Guido van Rossum authored
All test should succeed now (both TAL/test/run.py and TAL/runtest.py).
-
Guido van Rossum authored
longer generated. Also fix the test for <img src tal:attributes="src nothing">.
-
Guido van Rossum authored
XMLNS attributes) in rendered output, with an option to keep the old behavior. HTMLTALParser.py, TALParser.py: Mark TAL, METAL and TAL/METAL-related XMLNS attributes in the attribute list; the old macroHack marking is subsumed in this. The marking is a third value in the list item describing the attribute, saying "tal", "metal" or "xmlns". All TAL and METAL attributes are marked; only XMLNS attributes whose namespace URI value is the special marker for TAL or METAL are marked. TALInterpreter.py: - Get rid of the non-functional 'html' keyword argument. - Add new 'showtal' keyword argument to constructor; this defaults to -1, which means that the value should default to 0 if TAL expansion is requested (through the 'tal' keyword argument) and 1 if TAL expansion is not requested. - In do_startEndTag(), don't special-case empty HTML tags; this is already taken care of by TALGenerator. - Implement the showtal behavior: when this flag is false, don't output TAL, METAL and XMLNS attributes (that are marked as such by the parser). - Fix a bug: <img src="foo" tal:attributes="src nothing"> should render as <img>, not as <img src>. TALDefs.py: Bumped TAL_VERSION to "1.0.1" driver.py: New command line option -t to show tal in output README.txt: Update TO DO list.
-
Jim Fulton authored
At: http://classic.zope.org:8080/Collector/Collector/2141/sview Submitter: John Eikenberry Email: jae@kavi.com Description: We have a large query implemented via a SQL Method. We've been messing with it to get the most speed out of it, and noticed a large hit in the __init__() method on the Results class. We found that with this simple tweak (see included patch) we got around a 180% speed up. Not a ton, but pretty good for changing 3 lines of code.
-
Jim Fulton authored
(There's really not a good reason for asynchat to be in Python's standard lib.)
-
Jim Fulton authored
-
Jim Fulton authored
CVS (1.9).
-
Jim Fulton authored
-
Jim Fulton authored
as I hate line-continuation characters.
-
Jim Fulton authored
-
Fred Drake authored
Remove done item from TO DO list (CDATA content support).
-
Jeremy Hylton authored
to a directory other than the ZEO package directory.
-