diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-03-11 20:52:02 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-03-11 20:52:02 +0000 |
commit | 6a3c374b955299f0065356ef1de6cc0920d5382e (patch) | |
tree | 1ec2c2fddcc2d3c8b8f350fb42f86a84918c6fe1 /test/sql/constraints.py | |
parent | 320cb9b75f763355ed798c80d245998ce57e21cc (diff) | |
download | sqlalchemy-6a3c374b955299f0065356ef1de6cc0920d5382e.tar.gz |
- for hackers, refactored the "visitor" system of ClauseElement and
SchemaItem so that the traversal of items is controlled by the
ClauseVisitor itself, using the method visitor.traverse(item).
accept_visitor() methods can still be called directly but will
not do any traversal of child items. ClauseElement/SchemaItem now
have a configurable get_children() method to return the collection
of child elements for each parent object. This allows the full
traversal of items to be clear and unambiguous (as well as loggable),
with an easy method of limiting a traversal (just pass flags which
are picked up by appropriate get_children() methods). [ticket:501]
- accept_schema_visitor() methods removed, replaced with
get_children(schema_visitor=True)
- various docstring/changelog cleanup/reformatting
Diffstat (limited to 'test/sql/constraints.py')
-rw-r--r-- | test/sql/constraints.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sql/constraints.py b/test/sql/constraints.py index 79ccee4da..231a491b5 100644 --- a/test/sql/constraints.py +++ b/test/sql/constraints.py @@ -177,7 +177,7 @@ class ConstraintTest(testbase.AssertMixin): capt.append(repr(parameters)) connection.proxy(statement, parameters) schemagen = testbase.db.dialect.schemagenerator(testbase.db, proxy, connection) - events.accept_schema_visitor(schemagen) + schemagen.traverse(events) assert capt[0].strip().startswith('CREATE TABLE events') |