~barry/mailman/events-and-web

  • Committer: Barry Warsaw
  • Date: 2012-04-22 21:33:33 UTC
  • mfrom: (7150.1.11 transactions)
  • Revision ID: barry@list.org-20120422213333-3skjqsjktooesgsl
Several non-functional improvements to the code base.

Reduce the explicit use of the config.db global by introducing two new
helpers:
 - A new transaction() context manager which will commit the transaction on
   successful exit, otherwise it will abort the transaction
 - A new dbconnection decorator which calls the decorated method with the
   Storm store object as the first argument (after self).  This can be used
   instead of config.db.store.

By reducing the explicit use of this global, we have a better chance of
refactoring it away in the future.  Still TODO: runner.py and lmtp.py.

Be explicit about the `store` attribute on the IDatabase interface.

More consistent use of __future__ imports.

Remove an obsolete command line script.
Filename Latest Rev Last Changed Committer Comment Size
..
coverage.py 6518 17 years ago Barry Warsaw Add support for code coverage with 'testall --cove 34.9 KB Diff Download File
gnu-head-tiny.jpg 1999 24 years ago bwarsaw Added standard PythonPowered logo (converted to PN 2.9 KB Diff Download File
mailman-large.jpg 1699 25 years ago bwarsaw Removing all gifs. Convert logos to jpgs. 6 KB Diff Download File
mailman.jpg 1699 25 years ago bwarsaw Removing all gifs. Convert logos to jpgs. 1.9 KB Diff Download File
mm-icon.png 4338 22 years ago bwarsaw Slightly better contrast to the letters. 281 bytes Diff Download File
PythonPowered.png 1999 24 years ago bwarsaw Added standard PythonPowered logo (converted to PN 945 bytes Diff Download File