diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-03-27 00:40:42 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-03-27 00:40:42 +0000 |
commit | ca4a1fdac5f6348d8b06644e40a678883220057c (patch) | |
tree | cf4e5f6cf082f22ba8a5eb111919d01d0cea13c6 /lib/mako/ast.py | |
parent | 273621284508cba20dbb08e94bafa68779fe5c9f (diff) | |
download | external_python_mako-ca4a1fdac5f6348d8b06644e40a678883220057c.tar.gz external_python_mako-ca4a1fdac5f6348d8b06644e40a678883220057c.tar.bz2 external_python_mako-ca4a1fdac5f6348d8b06644e40a678883220057c.zip |
- added "n" filter, disables *all* filters normally applied to an expression
via <%page> or default_filters (but not those within the filter)
- added buffer_filters argument, defines filters applied to the return value
of buffered/cached/filtered %defs, after all filters defined with the %def
itself have been applied. allows the creation of default expression filters
that let the output of return-valued %defs "opt out" of that filtering
via passing special attributes or objects.
- added support for "class" structures in ast parsing (i.e. class-level
data members wont get added to the "declared" list)
Diffstat (limited to 'lib/mako/ast.py')
-rw-r--r-- | lib/mako/ast.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/mako/ast.py b/lib/mako/ast.py index 5556269..db51a88 100644 --- a/lib/mako/ast.py +++ b/lib/mako/ast.py @@ -47,6 +47,8 @@ class PythonCode(object): def _add_declared(s, name): if not s.in_function: self.declared_identifiers.add(name) + def visitClass(self, node, *args): + self._add_declared(node.name) def visitAssName(self, node, *args): self._add_declared(node.name) def visitAssign(self, node, *args): |