Opened 8 years ago

Closed 8 years ago

Not compatible with Trac 1.1.2

Reported by: Owned by: vaclav.cejka@… Ryan J Ollos normal TracSqlHelperScript blocker 1.2

Description

Because get_db_cnx is no longer supported on Trac 1.1.2 (see http://trac.edgewall.org/wiki/TracDev/DatabaseApi) the helper and all related plugins fail any procedure with Trac. During upgrade of the environment, AttributeEerror: 'Environment' object has no attribute 'get_db_cnx' occurs, so update of Trac is not possible.

comment:1 Changed 8 years ago by Ryan J Ollos

I'd welcome a patch for this. I'm not sure when I'll find to address it.

comment:2 Changed 8 years ago by vaclav.cejka@…

I'm sorry, I do not know Python programming. For anyone who can do this, the only call to the obsolete function is in the first method (constructor?) of the __init__.py file, with signature class SQLHelper(object). Being able to fix this, everthing should work.

comment:3 Changed 8 years ago by Ryan J Ollos

You are right, it's a pretty easy fix. I didn't even look. I commit a fix soon.

comment:4 Changed 8 years ago by Ryan J Ollos

Owner: set to Ryan J Ollos → fixed new → closed

In 14299:

0.3.0: New branch compatible with Trac 1.1.2 and later. Fixes #12090.

comment:5 Changed 8 years ago by Ryan J Ollos

Please install from the tracsqlhelperscript/1.2 branch and let me know if you have any issues.

Modify Ticket

Change Properties