#2026: TG2.0 Wiki20 database initialization script is missing a flush()?
------------------------+---------------------------------------------------
Reporter: llucax | Owner: faide
Type: defect | Status: new
Priority: normal | Milestone: 1.9.7b1
Component: TurboGears | Version: 1.9.x
Severity: normal | Keywords:
------------------------+---------------------------------------------------
Following the 20 minutes Wiki tutorial, in the script to initialize the
database it finally says:
{{{
# Save the page object to the in memory DBSession
DBSession.save(page)
}}}
But no INSERT is displayed in the log, and then, que
.query(Page).filter(...).one() fails complaining there is no data.
If I add:
{{{
DBSession.flush()
}}}
at the end of the DB initialization script, it works fine.
--
Ticket URL: <http://trac.turbogears.org/ticket/2026>
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.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---