Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trac 1.2 #45

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Trac 1.2 #45

wants to merge 8 commits into from

Conversation

thenor57
Copy link

For second round of review.

@@ -50,7 +50,6 @@
""",
license = 'BSD',

install_requires = ['Trac >= 0.12dev'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

description = 'Trac Sub-Tickets Plugin',
long_description = """
This plugin for Trac 0.12 provides Sub-Tickets functionality.
This plugin for Trac 0.12 and later provides Sub-Tickets functionality.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By using transaction context managers, the plugin will not longer be compatible with Trac < 1.0.

I've been dropping support for Trac < 1.0 on plugins I develop. It's not worth the effort to support any longer, is my opinion.

else:
cursor.execute("UPDATE system SET value=%s WHERE name=%s",
(db_default.version, db_default.name))
with self.env.db_transaction as db:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One other thing about Trac versions. Officially Trac 1.0 still supports Python 2.5. That's a rather old Python version, but if you do care about it, you'll need to add from __future__ import with_statement to the top of any files in which a transaction context manager is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants