From: Mike Bayer Date: Sat, 25 Mar 2006 19:46:04 +0000 (+0000) Subject: dev X-Git-Tag: rel_0_1_5~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f8d9440e479c5887fcaccda60066d9a4619ac26;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git dev --- diff --git a/doc/build/content/unitofwork.myt b/doc/build/content/unitofwork.myt index d9d160ccdd..97778849ed 100644 --- a/doc/build/content/unitofwork.myt +++ b/doc/build/content/unitofwork.myt @@ -379,13 +379,14 @@ <&|doclib.myt:item, name="scope", description="Custom Session Objects/Custom Scopes" &>

For users who want to make their own Session subclass, or replace the algorithm used to return scoped Session objects (i.e. the objectstore.get_session() method):

- <&|formatting.myt:code&> + <&|formatting.myt:code, title="Create a Session"&> # make a new Session s = objectstore.Session() # set it as the current thread-local session objectstore.session_registry.set(s) - + + <&|formatting.myt:code, title="Create a custom Registry Algorithm"&> # set the objectstore's session registry to a different algorithm def create_session(): @@ -404,9 +405,6 @@ <&|formatting.myt:code&> # make an engine with echo_uow engine = create_engine('myengine...', echo_uow=True) - - # globally turn on echo - objectstore.LOG = True

Commits will then dump to the standard output displays like the following:

<&|formatting.myt:code, syntaxtype=None&>