- 07 Apr, 2001 11 commits
-
-
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.
-
- 06 Apr, 2001 18 commits
-
-
Fred Drake authored
Add general support for CDATA element content, enabled by default for <script> and <style> elements since those are the ones I found in HTML 4.01.
-
Fred Drake authored
Added a test case to make sure <script> and <style> elements are handled correctly.
-
Guido van Rossum authored
-
Guido van Rossum authored
set or cleared by specifying any true or false value. (XXX I wonder if this should be recognized at compile time rather than at interpretation time; oh well, this works.)
-
Guido van Rossum authored
-
Fred Drake authored
more strict about matchnig only what's legal. The expression ends up being a bit more complex, and needs additional checks to be done on what follows. HTMLParser.check_for_whole_start_tag(): Helper method that uses locatestarttagend, performs the required additional checks, and determines whether we've actually found the end of the start tag, are at a buffer boundary, or have encountered an syntactical error. HTMLParser.parse_starttag(): Use check_for_whole_start_tag() to see if we really have the start tag. HTMLParseError.__init__(): Simplify assertion. This should close ZPT(18).
-
Fred Drake authored
Revise a test that requires "<tag attr=>" to be accepted -- it is not! Add a check to ensure it raises an HTMLParseError.
-
Fred Drake authored
Revise a test that requires "<tag attr=>" to be accepted -- it is not!
-
Barry Warsaw authored
exceptions. New tests which poke at transactionalUndo() checkSimpleTransactionalUndo checkTwoObjectUndo checkTwoObjectUndoAgain checkNotUndoable checkUndoInVersion On the Full storage only, of course.
-
Barry Warsaw authored
i.e. it undoes by writing new records. This means undone transactions can be redone. It also has lots of other benefits.
-
Evan Simpson authored
-
Shane Hathaway authored
- Made ZPT invoke DTML the normal way.
-
Shane Hathaway authored
-
Chris McDonough authored
-
Guido van Rossum authored
-
Guido van Rossum authored
Also fix the error for a duplicate fill-slot (which was erroneously reported as a duplicate slot *definition*). Question arises, should we also complain about duplicate define-slot, or is it okay to use define-slot with the same name more than once? This would be similar to "#define X(a) (a+a)" in C; it does point out that define-slot isn't a great name...
-
Guido van Rossum authored
-
- 05 Apr, 2001 10 commits
-
-
Jim Fulton authored
care of installing them when necessary (not for Python 2.0) Now import asyncore and asynchat as top-level modules, rather than from the medusa package. This makes it easier to use our custum version for Python 1.5 and to use the standard versions for Python 2.x. Note that the Python 2.1b1 and 2.1b2 releases had a broken asynchat that causes these changes to break Zope. The Python cvs and earler and later versions are OK.
-
Jim Fulton authored
care of installing them when necessary (not for Python 2.0)
-
Barry Warsaw authored
checkCreateNoFile(), checkCreateWithFilename(), checkCreateWithFileobj(): Make sure these tests close the file object before they attempt to unlink the underlying file.y checkCloseNoUnlink(), checkDel(): New tests in the CreateCommitLogTest class. CloseCommitLogTest: removed this class; its tests are folded into CreateCommitLogTest.
-
Barry Warsaw authored
(there's no DB object since we're poking at things at a lower level).
-
Barry Warsaw authored
tearDown(): Make sure any outstanding transactions are aborted so as not to retain modified objects connected to closed databases. Second, call self._close() to free any resources. _close(): Close the DB object, which in turn closes the underlying storage.
-
Chris McDonough authored
-
Chris McDonough authored
-
Chris McDonough authored
-
Barry Warsaw authored
_finish(): In delete-a-version clause, use next_dup() instead of next() to iterate over the currentVersions table with cursor set to the vid of the version we're deleting. abortVersion(): When cruising over the currentVersions table (and the key set to vid of the version we're aborting), use next_dup() instead of next(). Also, when curvid <> vid, raise StorageSystemError instead of VersionError. Same later on when we check curvid <> zero. commitVersion(): Add sanity checking based on model documentation: if the source version is the empty string, or src == dest, raise a VersionCommitError. Make the same changes we made previously to abortVersion() to keep track of the oids in a set/dictionary instead of a list to avoid duplicates. Other fixes include, writing revid instead of tid==self._serial to write_moved_object() and adding a write_discard_version(svid) once the source version's been committed. commitVersion() now works! load(): Add another check to avoid finding an object revision in a committed or aborted version if we can guess that version name. It now raises a VersionError if vid==zero and version is true. Also, although we still raise VersionError later on, elaborate the actual exception better in the error message.
-
Barry Warsaw authored
checkAbortVersionErrors checkModifyAfterAbortVersion checkCommitToNonVersion checkCommitToOtherVersion checkAbortOneVersionCommitTheOther All are inhibited for Minimal storage.
-
- 04 Apr, 2001 1 commit
-
-
Barry Warsaw authored
(a.k.a. pickle pointer) is usually tid but not always! In fact, it's specifically not tid when we've aborted a version -- it'll be the pointer to the pickle of the last non-version revision. We were actually setting up lrevid correctly, but writing tid to the metadata record. This fix writes lrevid instead.
-