summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-09-30 11:13:52 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-09-30 11:13:52 -0400
commit74461bab1967acb1da4a04a5ee0e1085fe64e83b (patch)
treede645163b1343129a91c128c38631bccb3267633 /lib/sqlalchemy/orm
parent9e5e1984d113ff93186edc86c84c71197d4005be (diff)
downloadsqlalchemy-74461bab1967acb1da4a04a5ee0e1085fe64e83b.tar.gz
- commit Priit Laes docstring fixes
- don't even talk about metadata.bind in declarative
Diffstat (limited to 'lib/sqlalchemy/orm')
-rw-r--r--lib/sqlalchemy/orm/scoping.py4
-rw-r--r--lib/sqlalchemy/orm/session.py15
2 files changed, 10 insertions, 9 deletions
diff --git a/lib/sqlalchemy/orm/scoping.py b/lib/sqlalchemy/orm/scoping.py
index e827bc5b8..3c4a0e5d8 100644
--- a/lib/sqlalchemy/orm/scoping.py
+++ b/lib/sqlalchemy/orm/scoping.py
@@ -49,8 +49,8 @@ class scoped_session(object):
:param \**kw: Keyword arguments will be passed to the
session factory callable, if an existing :class:`.Session`
is not present. If the :class:`.Session` is present and
- keyword arguments have been passed, :class:`.InvalidRequestError`
- is raised.
+ keyword arguments have been passed,
+ :exc:`~sqlalchemy.exc.InvalidRequestError` is raised.
"""
if kw:
diff --git a/lib/sqlalchemy/orm/session.py b/lib/sqlalchemy/orm/session.py
index 5e5cf2246..9b0c31e6a 100644
--- a/lib/sqlalchemy/orm/session.py
+++ b/lib/sqlalchemy/orm/session.py
@@ -442,7 +442,7 @@ class Session(_SessionClassMethods):
query_cls=query.Query):
"""Construct a new Session.
- See also the :func:`.sessionmaker` function which is used to
+ See also the :class:`.sessionmaker` function which is used to
generate a :class:`.Session`-producing callable with a given
set of arguments.
@@ -640,13 +640,13 @@ class Session(_SessionClassMethods):
"""Flush pending changes and commit the current transaction.
If no transaction is in progress, this method raises an
- InvalidRequestError.
+ :exc:`~sqlalchemy.exc.InvalidRequestError`.
By default, the :class:`.Session` also expires all database
loaded state on all ORM-managed attributes after transaction commit.
This so that subsequent operations load the most recent
data from the database. This behavior can be disabled using
- the ``expire_on_commit=False`` option to :func:`.sessionmaker` or
+ the ``expire_on_commit=False`` option to :class:`.sessionmaker` or
the :class:`.Session` constructor.
If a subtransaction is in effect (which occurs when begin() is called
@@ -671,10 +671,11 @@ class Session(_SessionClassMethods):
"""Prepare the current transaction in progress for two phase commit.
If no transaction is in progress, this method raises an
- InvalidRequestError.
+ :exc:`~sqlalchemy.exc.InvalidRequestError`.
Only root transactions of two phase sessions can be prepared. If the
- current transaction is not such, an InvalidRequestError is raised.
+ current transaction is not such, an
+ :exc:`~sqlalchemy.exc.InvalidRequestError` is raised.
"""
if self.transaction is None:
@@ -978,7 +979,7 @@ class Session(_SessionClassMethods):
linked to the :class:`.MetaData` ultimately
associated with the :class:`.Table` or other
selectable to which the mapper is mapped.
- 6. No bind can be found, :class:`.UnboundExecutionError`
+ 6. No bind can be found, :exc:`~sqlalchemy.exc.UnboundExecutionError`
is raised.
:param mapper:
@@ -1599,7 +1600,7 @@ class Session(_SessionClassMethods):
"""Associate an object with this :class:`.Session` for related
object loading.
- Accesses of attributes mapped with :class:`.relationship`
+ Accesses of attributes mapped with :func:`.relationship`
will attempt to load a value from the database using this
:class:`.Session` as the source of connectivity. The values
will be loaded based on foreign key values present on this