- 26 Mar, 2001 26 commits
-
-
Guido van Rossum authored
Properly implement tal:replace="structure ..." combined with tal:attributes="...", both in HTML and in XML mode. This is pretty tricky, and requires instantiating a parser with a modified code generator which suppresses any TAL/METAL interpretation but does the attribute replacement on the first encountered start tag as required by the TAL 1.0 specs.
-
Guido van Rossum authored
that are now generated.
-
Guido van Rossum authored
DummyCompiler class), and make sure to call it everywhere it is needed (in particular for attribute replacements). Emit a new opcode, "mode", with an argument "html" or "xml", depending on the value of the xml argument to the constructor. (This requires a matching checkin of TALInterpreter.) (This comment was mistakenly added to the previous checkin of DummyCompiler.py.) Don't append to self.program directly; always call self.emit().
-
Guido van Rossum authored
on the value of the xml argument to the constructor. (This requires a matching checkin of TALInterpreter.) Move the compile() method into this class. Make compile() enclose the expression in $dollars$, and add an uncompile() method to strip them again. This keeps me honest, making sure that compile() is always called.
-
Guido van Rossum authored
code. Add the exception raised by Expat to the module, under the name XMLParseError (which was the name used by the test suite).
-
Chris McDonough authored
-
Jeremy Hylton authored
started, calls to it would fail with a NameError (map). The fix is to using the global _looping to hold the socket map used by the current loop() call. Also reformat the code and add some doc strings.
-
Chris McDonough authored
-
Andreas Jung authored
-
Chris McDonough authored
-
Chris McDonough authored
-
Guido van Rossum authored
-
Fred Drake authored
Very preliminary test for the XMLParser class.
-
Barry Warsaw authored
Remove an unused import. Don't use the file's revision number in __version__, although keep it in a comment. After a recent exchange on python-dev, it wasn't the right way to extract the revision number anyway.
-
Evan Simpson authored
-
Guido van Rossum authored
-
Evan Simpson authored
-
Evan Simpson authored
Short-circuit the common case of opening tags without AL markup. As a side effect, stop generating spurious setPosition directives that break code optimization.
-
Guido van Rossum authored
new opcode, "version", whose argument is the new constant TALDefs.TAL_VERSION (currently "1.0"). The opcode implementation currently asserts that the correct version is given; future implementations can implement backwards compatible behavior.
-
Guido van Rossum authored
ismap>) pass None for the value instead of the attribute name. This is then used to generate the same output, rather than <img ismap="ismap">). Includes tests.
-
Evan Simpson authored
Make implicitly empty HTML tags follow the same code path as explicitly closed ones (<br> vs. <br />).
-
Evan Simpson authored
-
- 24 Mar, 2001 5 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
Remove confusing comment about entity replacement.
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
Add test for get_starttag_text().
-
- 23 Mar, 2001 7 commits
-
-
Chris McDonough authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
trigger it (other errors are not caught). TALESError() takes up to three args: msg, position, info, where msg is the message string, position is a (lineno, offset) tuple, and info is the exception info tuple (type, value, traceback) from sys.exc_info(). Both default to tuples with all None values. You can choose to subclass this exception of course. - Require explicit </endtag> for <starttags> that have TAL or METAL attributes. (Note that this detected a bug in the first example on http://dev.zope.org/Wikis/DevSite/Projects/ZPT/RenderErrorHandlingStrategies; the <span> wasn't closed.
-
Chris McDonough authored
-
Guido van Rossum authored
exception+traceback around. This is raised by evaluate(). Fix evaluate() to support string:, path:, not:, and exists:. For compatibility it still recognizes str: as an alias for string:, and var:, global: and local: as aliases for path:.
-
Evan Simpson authored
-
- 22 Mar, 2001 2 commits
-
-
Evan Simpson authored
-
Chris McDonough authored
-