From: Mike Bayer Date: Tue, 1 Feb 2011 20:09:28 +0000 (-0500) Subject: docuemnt args for before_parent_attach, after_parent_attach X-Git-Tag: rel_0_7b1~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fcbd39118e470a8ef04256d486f46c176a21b0c;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git docuemnt args for before_parent_attach, after_parent_attach --- 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. """