Randall wrote:
> My current approach is definitely not working.  When using RESTful
> style dev, I get the object and add attributes to it and a flush does
> nothing.
>
> def save(self, obj, **data):
>     session = sqlalchemy.object_mapper(obj).get_session()
>     obj.title = data.get('title')
>     session.flush()
>
> No errors and the title has not changed in the database.

I'm using ActiveMapper for my classes, and just call
activemapper.objectstore.flush() after making changes; that WORKSFORME.
I can't comment on how things work without ActiveMapper.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to