~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
..
msgs 2724 24 years ago bwarsaw This message has some very funky header values. Diff
fblast.py 5800 22 years ago twouters Not sure if this is at all useful still, as it se 1.3 KB Diff Download File
Makefile.in 6463 18 years ago bwarsaw Update copyright years. 1.9 KB Diff Download File
File onebounce.py 6153 19 years ago tkikuchi FSF office has moved. chdcking in for MAIN branch. 2.4 KB Diff Download File