On Tuesday 13 October 2009 00:52:28 Ash wrote: > OK, I'm confused. On creating a new object 'Note' like "note = Note > (key=value, ...)" I'm getting the below error from TG2. We're running > is WSGI and have the "DeclarativeBase = declarative_base > (mapper=DBSession.mapper)" option active in model/__init__.py. > > We also tried just using the query_property version and using > DBSession.add() caused the same effect. > > Anyone got a suggestion? > > -------- Original Message -------- > InvalidRequestError: Object '<Note at 0xaedb9d6c>' is already attached > to session '2934155212' (this is '2936125932')
I don't know anything about declarative, but in Elixir it can happen that you declare entities to belong to the default session instead of the one in <myproject>.model. Can you create other objects? If yes, take a close look on how those differ from Note. Diez --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

