Hello again

I'm using this solution


tgext.tagging relies heavily on ``SAVEPOINT`` to correctly handle
tagging uniqueness. The default SQLite behaviour is incompatible
with savepoints and requires some additional changes which are not
required when working with MySQL or Postgres.

Usually to make SQLite and zope.sqlalchemy properly behave the following 
code
is required before using your models::

    from sqlalchemy import event

    @event.listens_for(engine, "connect")
    def do_connect(dbapi_connection, connection_record):
        # Disable SQLITE automatic transactions
        dbapi_connection.isolation_level = None

    @event.listens_for(engine, "begin")
    def do_begin(conn):
        # Manually emit SQLITE transaction begin
        conn.execute("BEGIN")

    # Tell zope.sqlalchemy that SQLITE now supports SAVEPOINT
    from zope.sqlalchemy import datamanager
    datamanager.NO_SAVEPOINT_SUPPORT = set()

but it's sendig this error now>

 PlugTagging.plug of <tgext.tagging.PlugTagging object at 0x7f25d1636950>> 
at startup: name 'engine' is not defined




-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.

Reply via email to