-
Notifications
You must be signed in to change notification settings - Fork 19
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
base: master
Are you sure you want to change the base?
Trac 1.2 #45
Conversation
added auxiliary stored functions for reporting
Fixes for several tickets pre transfer to track-hacks
@@ -50,7 +50,6 @@ | |||
""", | |||
license = 'BSD', | |||
|
|||
install_requires = ['Trac >= 0.12dev'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may be interested in: https://trac-hacks.org/wiki/DevGuide#AssertMinimumTracVersionRequirement
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. |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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.
For second round of review.