[sqlalchemy] Re: Problem with session and instance

2008-01-23 Thread Alex Turner
on). It means that you cannot issue save() on an instance that > is already persistent, you need to use update() or save_or_update(). > Also if youre on the 0.4.0 series I strongly recommend getting on the > latest version. > > On Jan 22, 2008, at 2:18 PM, Alex Turner wrote: > >

[sqlalchemy] Problem with session and instance

2008-01-22 Thread Alex Turner
I am getting an error when I try to save an object for the second time. The things I don't get is that I believe I closed that session with a session.close() Alex Traceback (innermost last): Module ZPublisher.Publish, line 119, in publish Module ZPublisher.mapply, line 88, in mapply Module

[sqlalchemy] A General Thank You

2008-01-19 Thread Alex Turner
To all the people who have worked on SQL Alchemy's docs. A massive thank you! It is so refreshing to come to an open source project that has not just adequate documentation, but totally awesome docs. I can't believe how fast I was able to get SQL Alchemy working, the docs are fantastic!!! Alex

[sqlalchemy] Re: Problems connecting to Postgresql using collective.lead

2008-01-19 Thread Alex Turner
Ahh - that is the thing - he doesn't say in the book about postgresql, that is sort of the problem! He uses MySQL (Ugh) in the book, so I was sort of guessing. Alex On Jan 19, 2008 11:23 AM, Andreas Jung <[EMAIL PROTECTED]> wrote: > > > --On 18. Januar 2008 15:56:02 -0800

[sqlalchemy] Problems connecting to Postgresql using collective.lead

2008-01-18 Thread Alex Turner
I am getting an error connecting to Postgresql: ImportError: unknown database 'psycopg' The back story is that I am attempting to modify an example given in Martin Aspeli's Book: Professional Plone Development (Chapter 12 - page 274->. He recommends using SQLAlchemy, and it looks very cool, kind