One thing I can see is that you're using an older version of SA, since  
that error message has been changed (either 0.4.0 or an old 0.3  
version).  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:

> 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 ZPublisher.Publish, line 42, in call_object
>   Module zope.formlib.form, line 769, in __call__
>   Module Products.Five.formlib.formbase , line 55, in update
>   Module zope.formlib.form, line 750, in update
>   Module zope.formlib.form, line 594, in success
>   Module plone.app.controlpanel.form, line 26, in handle_edit_action
>   Module mls.agent.browser.client_settings , line 54, in _on_save
>   Module sqlalchemy.orm.session, line 418, in save
>   Module sqlalchemy.orm.session, line 577, in _save_impl
> InvalidRequestError: Instance  
> '<mls.agent.client_settings_impl.ClientSettings object at  
> 0xe2e3a4c>' is a detached instance or is already persistent in a  
> different Session
>
>
>
> >


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

Reply via email to