#922: [PATCH] update TG to support sqlalchemy API 0.2
------------------------+---------------------------------------------------
Reporter: max | Owner: anonymous
Type: task | Status: new
Priority: normal | Milestone: 1.0b1
Component: TurboGears | Version: 0.9a6
Severity: major | Resolution:
Keywords: |
------------------------+---------------------------------------------------
Comment (by matt):
I've reattached the patch with minor changes so it applies cleanly to the
current 1.0 branch. I also updated the QuickStart template for dev.cfg to
provide a valid default `sqlalchemy.dburi` setting when identity uses SA.
So far I've only tested creating a user though "tg-admin shell":
{{{
>>> u = User()
>>> u.user_name = 'test'
>>> u.password = 'test'
>>> u.display_name = 'Test User'
>>> u.email_address = '[email protected]'
>>> objectstore.current.save(u)
>>> objectstore.current.flush()
}}}
Answer no to the prompt when you exit the shell "Do you wish to commit
your database changes?" This doesn't currently work with SA.
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/922>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" 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-tickets
-~----------~----~----~----~------~----~------~--~---