this is patched intio SVN. On Aug 22, 2006, at 6:35 PM, Sol wrote:
> Hello, > there is an other minor incorrectness in the docs at > http://www.sqlalchemy.org/docs/unitofwork.myt#unitofwork_getting > > 'session = objectstore.get_session()' > probably should be > 'session = objectstore.session' > > The attached patch fixes this (it includes my previous doc patch, > as it > is not integrated in svn yet). > > -- > Cheers, Sol. > Index: doc/build/content/unitofwork.txt > =================================================================== > --- doc/build/content/unitofwork.txt (revision 1817) > +++ doc/build/content/unitofwork.txt (working copy) > @@ -72,7 +72,7 @@ > objectstore.flush() > > # which is the same as this (assuming we are still on the same > thread): > - session = objectstore.get_session() > + session = objectstore.session > session.flush() > > We will now cover some of the key concepts used by Sessions and > its underlying Unit of Work. > Index: doc/build/content/metadata.txt > =================================================================== > --- doc/build/content/metadata.txt (revision 1817) > +++ doc/build/content/metadata.txt (working copy) > @@ -266,7 +266,7 @@ > > ### Creating and Dropping Database Tables [EMAIL PROTECTED] > > -Creating and dropping individual tables can be done via the `create > ()` and `drop()` methods of `Table`; these methods take an optional > `engine` parameter which references an `Engine` or a `Connection`. > If not supplied, the `Engine` bound to the `MetaData` will be used, > else an error is raised: > +Creating and dropping individual tables can be done via the `create > ()` and `drop()` methods of `Table`; these methods take an optional > `connectable` keyword argument which references an `Engine` or a > `Connection`. If not supplied, the `Engine` bound to the > `MetaData` will be used or an error is raised: > > {python} > meta = BoundMetaData('sqlite:///:memory:') > @@ -296,7 +296,7 @@ > employees.create(connectable=e, checkfirst=True) > employees.drop(checkfirst=False) > > -Entire groups of Tables can be created and dropped directly from > the `MetaData` object with `create_all()` and `drop_all()`. These > methods always check for the existence of each table before > creating or dropping. Each method takes an optional `engine` > keyword argument which can reference an `Engine` or a > `Connection`. If no engine is specified, the underlying bound > `Engine`, if any, is used: > +Entire groups of Tables can be created and dropped directly from > the `MetaData` object with `create_all()` and `drop_all()`. These > methods always check for the existence of each table before > creating or dropping. Each method takes an optional `connectable` > keyword argument which can reference an `Engine` or a `Connection`. > If no connectable is specified, the underlying bound `Engine`, if > any, is used: > > {python} > engine = create_engine('sqlite:///:memory:') > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642______________________________ > _________________ > Sqlalchemy-users mailing list > Sqlalchemy-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Sqlalchemy-users mailing list Sqlalchemy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users