From 7fcbd39118e470a8ef04256d486f46c176a21b0c Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 1 Feb 2011 15:09:28 -0500 Subject: [PATCH] docuemnt args for before_parent_attach, after_parent_attach --- lib/sqlalchemy/events.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lib/sqlalchemy/events.py b/lib/sqlalchemy/events.py index 8a2776898d..fe9c5dda15 100644 --- a/lib/sqlalchemy/events.py +++ b/lib/sqlalchemy/events.py @@ -131,11 +131,31 @@ class DDLEvents(event.Events): """Called before a :class:`.SchemaItem` is associated with a parent :class:`.SchemaItem`. + :param target: the target object + :param parent: the parent to which the target is being attached. + + :func:`.event.listen` also accepts a modifier for this event: + + :param propagate=False: When True, the listener function will + be established for any copies made of the target object, + i.e. those copies that are generated when + :meth:`.Table.tometadata` is used. + """ def after_parent_attach(self, target, parent): """Called after a :class:`.SchemaItem` is associated with a parent :class:`.SchemaItem`. + + :param target: the target object + :param parent: the parent to which the target is being attached. + + :func:`.event.listen` also accepts a modifier for this event: + + :param propagate=False: When True, the listener function will + be established for any copies made of the target object, + i.e. those copies that are generated when + :meth:`.Table.tometadata` is used. """ -- 2.47.2