On Jun 13, 2007, at 7:54 AM, voltron wrote:
> > I have decided to use the global_metada to setup the tables in my app, > in one of the tables, users, I setup an admin account > > user = User("john doe", "[EMAIL PROTECTED]") > > how do I flush the the above object? user.flush() does not work in > this context because the User object does not have the attribute > "flush" ( traceback) > first of all, global_metadata is being removed in version 0.4. not to mention, being able to say user.flush() (which only occurs now when you use assignmapper). global_metadata is hardcoded to the "dynamicmetadata" which is an object most people shouldnt be using. shortcuts to configuration like that lead to people not understanding very well what they're doing. but beyond that, global_metadata has nothing to do with the object relational mapper. you would still have to create an explicit session with the example code above, in which to save your User object. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---