Skip to content

Commit

Permalink
fix docstring references
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzeek committed Jan 30, 2012
1 parent a9aa76a commit 0bf3fe8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions alembic/migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ class MigrationContext(object):
The :class:`.MigrationContext` that's established for a
duration of a migration command is available via the
:attr:`.EnvironmentContext.migration_context` datamember,
:meth:`.EnvironmentContext.get_context` method,
which is available at ``alembic.context``::
from alembic import context
migration_context = context.migration_context
migration_context = context.get_context()
A :class:`.MigrationContext` can be created programmatically
for usage outside of the usual Alembic migrations flow,
Expand Down Expand Up @@ -193,7 +193,7 @@ def bind(self):
in :ref:`sqlexpression_toplevel` as well as
for usage with the :meth:`sqlalchemy.schema.Table.create`
and :meth:`sqlalchemy.schema.MetaData.create_all` methods
of :class:`.Table`, :class:`.MetaData`.
of :class:`~sqlalchemy.schema.Table`, :class:`~sqlalchemy.schema.MetaData`.
Note that when "standard output" mode is enabled,
this bind will be a "mock" connection handler that cannot
Expand Down
4 changes: 2 additions & 2 deletions alembic/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def _ensure_table_for_fk(self, metadata, fk):
rel_t.append_column(schema.Column(cname, NULLTYPE))

def get_context(self):
"""Return the :class:`.MigrationsContext` object that's
"""Return the :class:`.MigrationContext` object that's
currently in use.
"""
Expand Down Expand Up @@ -657,7 +657,7 @@ def get_bind(self):
"""Return the current 'bind'.
Under normal circumstances, this is the
:class:`sqlalchemy.engine.Connection` currently being used
:class:`~sqlalchemy.engine.base.Connection` currently being used
to emit SQL to the database.
In a SQL script context, this value is ``None``. [TODO: verify this]
Expand Down
2 changes: 1 addition & 1 deletion docs/build/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ of database dialect in use, are not. Once the
is said to be *configured* with database connectivity, available via
a new :class:`.MigrationContext` object. The :class:`.MigrationContext`
is associated with the :class:`.EnvironmentContext` object
via the :attr:`.EnvironmentContext.migration_context` datamember.
via the :meth:`.EnvironmentContext.get_context` method.

Finally, ``env.py`` calls upon the :meth:`.EnvironmentContext.run_migrations`
method. Within this method, a new :class:`.Operations` object, which
Expand Down
2 changes: 1 addition & 1 deletion docs/build/ops.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ appropriate SQLAlchemy metadata, typically involving
objects. This so that migration instructions can be
given in terms of just the string names and/or flags involved.
The exceptions to this
rule include the :meth:`~.Operations.add_column` and :func:`~.Operations.create_table`
rule include the :meth:`~.Operations.add_column` and :meth:`~.Operations.create_table`
directives, which require full :class:`~sqlalchemy.schema.Column`
objects, though the table metadata is still generated here.

Expand Down

0 comments on commit 0bf3fe8

Please sign in to comment.