- 10 Feb, 2001 3 commits
-
-
Chris McDonough authored
Raise error in _getobcontext if request.steps is len(0)... if someone deletes the root index_html, they will no longer get a puzzling failure if they attempt to view an object without an acquirable index_html.
-
Fred Drake authored
Fix reference to local variable; also submitting patch to Steve Purcell.
-
Chris McDonough authored
Changed product init code so that README.txt can be any of "README.txt", "README.TXT" or "readme.txt".
-
- 09 Feb, 2001 31 commits
-
-
Jim Fulton authored
we can rerun the tests and catch exceptions witha debugger.
-
Guido van Rossum authored
declarations.
-
Guido van Rossum authored
namespace declaration.
-
Chris McDonough authored
-
Guido van Rossum authored
- Only minimize empty elements when the content model is empty, keeping an explicit list of which elements have an empty content model (e.g. <img>, etc.). This checks whether the tagname is in an explicit list of such elements; the check is case insensitive. - Minimize certain attributes that are considered Boolean by HTML, e.g. ismap. Again, this does a case-insensitive check whether the attribute name is in a list of known Boolean attributes. Note: this should really be refactored, making HTML support a subclass rather than a keyword argument. Later...
-
Chris McDonough authored
-
Chris McDonough authored
-
Evan Simpson authored
-
Guido van Rossum authored
-
Guido van Rossum authored
- metal to do macro expansion (default on) - tal to do TAL expansion (default on) - html for XHTML heuristics (default off). See http://www.w3.org/TR/xhtml1/#guidelines for what this should do; currently all it does is to suppress the XML declaration and insert a space before the /> in minimized elements. Changed the TALCompiler class to generate enough code to be able to implement the tal=0 and metal=0 options to TALInterpreter; this meant e.g. compiling the original contents of nodes subject to replacement.
-
Chris McDonough authored
-
Guido van Rossum authored
TALVisitor. Also added wrap=0 to the TALInterpreter call, so the regression test isn't affected by the new wrapping code.
-
Guido van Rossum authored
aligns them with the end of the tag. This required introducing self.write_stream() which keeps track of the current output column. The default wrap column is 60. Specifying 0 disables wrapping (good for the regression test).
-
Evan Simpson authored
-
Evan Simpson authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
preserved.
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
them froM TALVisitor into the other modules.
-
Guido van Rossum authored
class constructor, so a caller can pass in an expression compiler. Every expression occurring in the syntax is compiled first (even the macro name in use-macro; but not slot names, nor the macro name in define-macro). If the expressionCompiler argument is left unspecified, a default compiler is chosen whose compiled output is identical to its input.
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Evan Simpson authored
-
Guido van Rossum authored
-
Guido van Rossum authored
value. This affects TALCompiler.py and TALInterpreter.py, and affects the output of the non-local-macro expansion tests. The TALVisitor.py module is *not* yet fixed to do this. - In order to do this, I had to change the "program code" format for the attribute list: the 3rd item of an attribute description tuple, if present, now names an action, and the remaining tuple items are arguments for that action. Two actions are recognized: "replace" replaces the attribute with the outcome of evaluating the expression given by the next tuple item; "macroHack" replaces the attribute name with "use-macro" and its value with the current macro, but only if we're inside macro expansion and the attribute name ends in ":define-macro". - The test suite is now error-free for "./runtest.py -c" but shows some errors for "./runtest.py". - Added a primitive debugging flag to the TALInterpreter class. - Update the README.
-
Guido van Rossum authored
-
Guido van Rossum authored
- Should I check for spurious TAL attributes even when doing just METAL (macro) expansion? - Should I turn all the other errors into exceptions too? (Currently they are all print statements.)
-
- 08 Feb, 2001 6 commits
-
-
Jeffrey Shell authored
lock-refresh request.
-
Guido van Rossum authored
to minidom. (Note that at the moment, only the latest Python CVS version of minidom works; 2.1b1 will work too when it is released, but 2.1a2 or anything before won't.)
-
Guido van Rossum authored
- Lose redundant semicolon.
-
Guido van Rossum authored