Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
3d8a42f3
Commit
3d8a42f3
authored
Feb 07, 2001
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some clarifications and updates.
Document running the regression test. Add TO DO list.
parent
c9794330
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
3 deletions
+45
-3
lib/python/TAL/README
lib/python/TAL/README
+45
-3
No files found.
lib/python/TAL/README
View file @
3d8a42f3
...
...
@@ -16,7 +16,7 @@ Prerequisites
You need:
- A recent checkout of Zope2; don't forget to run the wo_pcgi.py
script to compile everything
)
.
script to compile everything.
- A recent checkout of the Zope2 product ParsedXML, accessible
throught <Zope2>/lib/python/Products/ParsedXML; don't forget to run
...
...
@@ -33,12 +33,22 @@ You need:
How To Play
-----------
(Don't forget to edit setpath.py!)
(Don't forget to edit setpath.py
, see above
!)
The script driver.py takes an XML file with TAL markup as argument and
writes the expanded version to standard output. The filename argument
defaults to test/test1.xml.
Regression test
---------------
There are a number of test cases in the test subdirectory, named
test/test<number>.xml. The Python script ./runtest.py runs
./driver.py for each test case, and should print "<file> OK" for each
testcase. You can pass it command line options like -c or -m which
will be passed on to driver.py; note that in this case some tests will
fail, and a diff will be printed.
What's Here
-----------
...
...
@@ -50,7 +60,9 @@ driver.py script to demonstrate TAL expansion
timer.py script to time various processing phases
setpath.py hack to set sys.path and import ZODB
__init__.py empty file that makes this directory a package
runtest.sh shell script to run regression tests
runtest.py Python script to run regression tests
ndiff.py helper for runtest.py to produce diffs
runtest.sh shell script to run regression tests (old)
test/ drectory with test files and output
Author and License
...
...
@@ -58,3 +70,33 @@ Author and License
This code is written by Guido van Rossum. It is owned by Digital
Creations and can be redistributed under the Zope Public License.
TO DO
-----
Here are some things that should be done.
- Fix the tweaking of the define-macro attribute on macro expansion so
that:
(1) it is only tweaked if the proper prefix is used; and
(2) the argument is taken from the use-macro attribute.
- Provide a framework for error messages (currently it just prints to
stdout).
- Provide a dummy implementation of evaluateStructure()?
- Check for attempt to replace the documentElement. (Exception: when
replacing with a single element? Should it be the same tag?)
- Speed up findMacro()?
- When using z:replace="structure ...", should make a copy of the
nodes; perhaps the data should be a documentFragment node?
It's unclear on what to do about these items:
- A comment (or other non-element node) before the documentElement.
- The DOMVisitor class assumes that only Document and Element nodes
have children.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment