Hi,
This is TurboGears ticket #1419 http://trac.turbogears.org/ticket/1419
A fix is in version 1.0.3.2.
Paul
robertz23 wrote:
> Hi, I'm making a project using TurboGears with SqlAlchemy. The
>problem that I think I have is when I make some changes to the DB with
>the webservice I'm making or directly using MySQL shell. What happens
>next is that sometimes when I refresh the page it shows me the value I
>had before (Although the DB has the new value). I've tried to use
>close() or clear() methods, but I think sometimes they work sometimes
>they don't. I'm using assign_mapper with a session_context for all my
>models. This is some of the code:
>
>
>#####CREATE THE OBJECT#####
>computerObj = Computer().get_by(guid=args.get('guid'))
>#####Some Code Here#####
>...
>...
>...
>Then I close or clear the session this way:
>
>computerObj.query().session.close() #or
>computerObj.query().session.clear()
>
>But I think I'm doing something wrong. Could you help me?
>
>Regards,
>Roberto Zapata
>
>
>>
>
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" 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/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---