~sambuddhabasu1/mailman/fix_mailman_run_error

  • Committer: bwarsaw
  • Date: 2007-03-21 14:11:53 UTC
  • Revision ID: vcs-imports@canonical.com-20070321141153-chq79cj8kdnvku1p
Test suite repair.  All tests are now passing again.

- In i18n.py, change this method so that everything it returns will be
  guaranteed to be a unicode.  Mailman 2.2 will be unicode-safe, meaning all
  strings internally will be unicodes.  The translation service is one
  boundary point were strings come from the outside, so ensure that they are
  unicodes and convert if necessary.  This may break some things, but it's
  better to fix those situations than to continue to return 8-bit strings from
  _().

- In Mailman/testing/base.py, craft a fake module called Mailman.MTA.stub and
  stick no-op functions on stub.create() and stub.remove().  We really don't
  need the MTA modules for testing purposes (yet at least), and if you're
  using the default configuration, you'll get tons of cruft on stdout when the
  Manual MTA tries to add and remove mailing lists.

  Set up the test configuration environment to use this stub MTA module.

- In test_handlers.py, remove an extraneous str().

- Convert ToDigest.py, Hold.py and Acknowledge.py to __i18n_templates__.  (I'm
  pretty darn close to just making everything use $-strings by default.)

- In CookHeaders.py, there's no need to unicode()-ify the subject since that
  should already be a unicode when passed from _().

- In MailList.py, we can use the str.capitalize() method.
Filename Latest Rev Last Changed Committer Comment Size
..
bin 28 27 years ago mailman Initial revision Diff
contrib 1436 25 years ago bwarsaw Contribution by Bruce Perens -- cleaned for style Diff
cron 3 27 years ago klm Initial revision Diff
docs 6461 18 years ago bwarsaw reorganize READMEs and other documentation. more Diff
Mailman 1 27 years ago klm Initial revision Diff
messages 3119 23 years ago bwarsaw intermediate Diff
misc 4 27 years ago mailman Initial revision Diff
scripts 67 27 years ago mailman Initial revision Diff
src 68 27 years ago mailman Initial revision Diff
templates 45 27 years ago mailman Initial revision Diff
tests 2722 24 years ago bwarsaw Rebuilding my zapped bounce test cases. Diff
File configure 6463 18 years ago bwarsaw Update copyright years. 149 KB Diff Download File
configure.in 6463 18 years ago bwarsaw Update copyright years. 17.1 KB Diff Download File
File install-sh 517 26 years ago bwarsaw New files for support of autoconf. More to follow 5.4 KB Diff Download File
Makefile.in 6466 18 years ago tkikuchi Where should etc directory belong, $prefix or $var 4.1 KB Diff Download File
File mkinstalldirs 2647 24 years ago bwarsaw Bumping the major rev number 726 bytes Diff Download File
README.txt 6461 18 years ago bwarsaw reorganize READMEs and other documentation. more 6.6 KB Diff Download File