~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
..
.buildout 6741 15 years ago Barry Warsaw Integrate pylint and Sphinx documentation buildout Diff
cron 3 26 years ago klm Initial revision Diff
data 6580 17 years ago Barry Warsaw Reorganize the database subpackage, primarily by r Diff
src 6675 15 years ago Barry Warsaw Push the source directory into a 'src' subdirector Diff
.bzrignore 6812 15 years ago Barry Warsaw * Switch to distribute from setuptools. * Remove t 210 bytes Diff Download File
bootstrap.py 6933 14 years ago Barry Warsaw zc.buildout 1.5 9.7 KB Diff Download File
buildout.cfg 7053.1.2 13 years ago Barry Warsaw This is the way to build the documentation now: $ 472 bytes Diff Download File
conf.py 7139 12 years ago Barry Warsaw Fix a few typos, and the creation of index.html sy 7.6 KB Diff Download File
File copybump.py 7037.1.1 13 years ago Barry Warsaw In copybump, if the start year is this year, just 2.3 KB Diff Download File
COPYING 7018 13 years ago Barry Warsaw Update COPYING file to GPLv3. (LP: #790994) 34.3 KB Diff Download File
distribute_setup.py 6812 15 years ago Barry Warsaw * Switch to distribute from setuptools. * Remove t 14.2 KB Diff Download File
MANIFEST.in 7018 13 years ago Barry Warsaw Update COPYING file to GPLv3. (LP: #790994) 363 bytes Diff Download File
README.rst 7138 12 years ago Barry Warsaw * Some additional documentation on related compon 2 KB Diff Download File
setup.cfg 7053.1.2 13 years ago Barry Warsaw This is the way to build the documentation now: $ 44 bytes Diff Download File
setup.py 7139.1.1 12 years ago Barry Warsaw * The `news` runner and queue has been renamed to 3.6 KB Diff Download File
template.py 7076 12 years ago Barry Warsaw * Held messages can now be moderated through the 865 bytes Diff Download File