Source

trac-ticketlinks / trac / db / api.py

Author Commit Message Labels Comments Date
rblank
0.12.1dev: Correctly handle an empty `[trac] backup_dir` option. Closes #9556.
Branches
0.12-stable
cboos
Move `with_transaction` and `get_read_db` from `trac.db.util` to `trac.db.api`.
Branches
trunk
rblank
db: Converted all timestamp columns for resource tables from seconds to microseconds. * Ticket comments can now be added with a shorter interval than one second. * Conversions of datetime objects from / to microsecond timestamps should be done exclusively throught the new `from_utimestamp()` and `to_utimestamp()` functions. '''This changeset requires a database upgrade.''' Closes #6466.
Branches
trunk
rblank
0.12dev: Autumn cleaning using pylint: * Removed unused imports. * Removed unused locals. * Fixed whitespace issues (indentation, spacing, coding conventions). * Removed semicolons at the end of lines (some people around here have been doing too much C ;-). Closes #7518.
Branches
trunk
rblank
0.12dev: Merged [8582] from 0.11-stable.
Branches
trunk
rblank
0.12dev: Merged [8310-8313] from 0.11-stable.
Branches
trunk
cboos
0.12dev: merged r8213 (optional `[trac] debug_sql` logging of SQL statements)
Branches
trunk
cboos
0.12dev: merged rework-testing branch [8000:8130/sandbox/rework-testing]
Branches
trunk
jonas
Merged [7889] from 0.11-stable.
Branches
trunk
cboos
Follow-up to r6991 (add missing import)
Branches
trunk
jruigrok
Use the proper incantation for _().
Branches
trunk
cboos
My bad, urllib.unquote is perfectly able to handle unicode input, whereas our unicode_unquote was meant to be the reverse of unicode_quote (hence expecting a str input). Fixes #5067.
Branches
trunk
cboos
Prevent password information to be displayed in frame info dumps. Fixes #5024.
Branches
trunk
mgood
handle quoted characters in username or password of database URLs (fixes #4866)
Branches
trunk
mgood
add unit test for parsing db URI with Windows path and clean up some logic in db URI parsing
Branches
trunk
cmlenz
Minor improvement to the way the database connector is chosen from the available ones. Thanks to Lele Gaifax for pointing out the issue.
Branches
trunk
cboos
Adding a configurable timeout parameter for not waiting forever if there's no available connection.
Branches
trunk
cboos
Another follow-up to r3756: don't delete the connection pool at thread shutdown.
Branches
trunk
cboos
Fix the logic of the !ConnectionPool w.r.t to threads. !PooledConnection could end up being garbage collected in an other thread than the one which created it. - this triggered an assertion (#3504) - even if the assertion was avoided by properly tracking the !PooledConnection, with some backends (pysqlite) it's illegal to manipulate a Connection from a different thread than the one which created the instance. Therefore we had to ensure that upon th…
Branches
trunk
cmlenz
Update link to project site in all the boilerplate etc.
Branches
trunk
cmlenz
Assign `connector` variable so that it is bound even if there are no connectors.
Branches
trunk
cmlenz
Fairly large change to the recently introduced `IConfigurable` mechanism that lets plugins declare options they support in [wiki:TracIni trac.ini]. Instead of using an extension point, the new mechanism uses descriptors (one of `Option`, `BoolOption`, `IntOption`, `ListOption`, or `ExtensionOption`) that can be added to any class (but especially `Component` subclasses), allowing direct access to the configured value. The `Option` class keeps a registry of all declared options, so that the defaults also work when the option is accessed through…
Branches
trunk
cmlenz
Moved the declaration of some config options to where they are actually being used.
Branches
trunk
cboos
Follow-up to r3109: there was actually more than one user of `cursor.description`, so I decided to factor out the changes. There's now a `trac.db.get_column_names` utility, which is simpler to use than `cursor.description` (it contains only the names) and is guaranteed to deliver `unicode` objects.
Branches
trunk
cboos
Follow-up to the db-refactoring (r2555): the upgrade script db15.py was still using the old API.
Branches
trunk
jonas
Merge the db-refactoring branch with trunk.
Branches
trunk