#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 | Resolution:
Keywords: |
------------------------+---------------------------------------------------
Comment (by llucax):
I'm sorry, that doesn't fix the problem. The INSERT is shown but no
COMMIT. If I do:
{{{
DBSession.commit()
}}}
I get this error:
{{{
Traceback (most recent call last):
File "<stdin>", line 18, in <module>
File "/tmp/tg2env/lib/python2.5/site-
packages/SQLAlchemy-0.5.0beta3-py2.5.egg/sqlalchemy/orm/scoping.py", line
106, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "/tmp/tg2env/lib/python2.5/site-
packages/SQLAlchemy-0.5.0beta3-py2.5.egg/sqlalchemy/orm/session.py", line
663, in commit
self.transaction.commit()
File "/tmp/tg2env/lib/python2.5/site-
packages/SQLAlchemy-0.5.0beta3-py2.5.egg/sqlalchemy/orm/session.py", line
376, in commit
self._prepare_impl()
File "/tmp/tg2env/lib/python2.5/site-
packages/SQLAlchemy-0.5.0beta3-py2.5.egg/sqlalchemy/orm/session.py", line
352, in _prepare_impl
self.session.extension.before_commit(self.session)
File "/tmp/tg2env/lib/python2.5/site-
packages/zope.sqlalchemy-0.3-py2.5.egg/zope/sqlalchemy/datamanager.py",
line 191, in before_commit
assert zope_transaction.get().status == 'Committing', "Transaction
must be committed by zope"
AssertionError: Transaction must be committed by zope
}}}
--
Ticket URL: <http://trac.turbogears.org/ticket/2026#comment:1>
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
-~----------~----~----~----~------~----~------~--~---