'Append a DDL event listener to this ``MetaData``.
.. deprecated:: 0.7
See :class:`.DDLEvents`.'

def append_ddl_listener(self, event_name, listener):

    def adapt_listener(target, connection, **kw):
        tables = kw['tables']
        listener(event, target, connection, tables=tables)
    event.listen(self, ('' + event_name.replace('-', '_')), adapt_listener)
