~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
..
howtos 6461 18 years ago bwarsaw reorganize READMEs and other documentation. more Diff
IPC7 6461 18 years ago bwarsaw reorganize READMEs and other documentation. more Diff
LISA-98 6461 18 years ago bwarsaw reorganize READMEs and other documentation. more Diff
man 6461 18 years ago bwarsaw reorganize READMEs and other documentation. more Diff
readmes 6461 18 years ago bwarsaw reorganize READMEs and other documentation. more Diff
ACKNOWLEDGMENTS.txt 6461 18 years ago bwarsaw reorganize READMEs and other documentation. more 5.2 KB Diff Download File
gnu-COPYING-GPL 6461 18 years ago bwarsaw reorganize READMEs and other documentation. more 17.5 KB Diff Download File
NEWS.txt 6461 18 years ago bwarsaw reorganize READMEs and other documentation. more 114 KB Diff Download File
posting-flow-chart.ps 6461 18 years ago bwarsaw reorganize READMEs and other documentation. more 24.6 KB Diff Download File
STYLEGUIDE.txt 6463 18 years ago bwarsaw Update copyright years. 6 KB Diff Download File