Hi,
I sometimes see this type of error:
Traceback (most recent call last):
File "dialognewwine.pyo", line 750, in OnSaveButton
File "dialognewwine.pyo", line 768, in SaveData
File "sqlalchemy\orm\session.pyo", line 924, in refresh
File "sqlalchemy\orm\session.pyo", line 1234, in _validate_persistent
InvalidRequestError: Instance '<Purchase at 0xdac9df0>' is not persistent
within this Session
Inspecting my code I see that I forgot to call session.add, however the
same code works most of the time without complaining.
Are there situations where session.add doesn't need to be called?
Werner
P.S. Using SA 0.6.5
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en.