On Jan 30, 2008 8:31 AM, Mike Orr <[EMAIL PROTECTED]> wrote:
> What was the solution to the "object is already persistent" bug?  My
> colleague got it last week on Windows when running the prebuilt egg.
> I looked to see the model was being set up correctly and
> Session.remove() was being called in the base controller, and I didn't
> see anything wrong.

Found the answer in the IRC logs.  It's a new feature in SQLAlchemy,
and QuickWiki should use a different save method, which I assume will
be fixed soon.

resolve hi folks. i just downloaded the latest quickwiki        00:03
resolve attempts to edit fronpage yiield InvalidRequestError: Instance
'[EMAIL PROTECTED]' is already persistent       00:03
Chairos yeah, it's a bug that shows up when you use the latest sqlalchemy       
00:03
Chairos if you downgrade to 0.4.1 you should be fine.   00:04
Chairos someone should probably report this bug, but I'm too lazy.      00:04
resolve what's causing it?      00:04
Chairos dunno   00:04
resolve why don't you call save_or_update() instead?    00:04
resolve tested, that fixed it   00:05
Chairos Largely because I don't use the quickwiki, I guess.     00:06
Chairos also, I use the contextual mapper so that save() is unneeded.   00:06
alus    Chairos: http://www.sqlalchemy.org/trac/ticket/861 ?    00:16
alus    and http://www.sqlalchemy.org/trac/ticket/856   00:16
Chairos alus: what am I supposed to do with that?       00:16
Chairos I don't maintain quickwiki or sqlalchemy        00:16
alus    they seem to be related to this issue   00:16
alus    I thought you might like to know if the sqlalchemy guys said it
was not a bug   00:16
Chairos I don't care that much. 00:17
alus    ok      00:17
Chairos It's obviously a bug in quickwiki.

-- 
Mike Orr <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to