~sambuddhabasu1/mailman/fix_mailman_run_error

« back to all changes in this revision

Viewing changes to Mailman/Cgi/create.py

  • Committer: Barry Warsaw
  • Date: 2007-07-18 15:46:44 UTC
  • mto: This revision was merged to the branch mainline in revision 6532.
  • Revision ID: barry@python.org-20070718154644-uf7vi24itgwhbkoi
More work on completing the transition to setuptools.

* Mailman/testing -> Mailman/test
* Removed Mailman/testing/base.py
* Fix mailmanctl by using a different way of calculating where the qrunner
  script is.  The configuration file no longer knows what BIN_DIR is, but the
  mailmanctl script knows where it lives via sys.argv[0].  Also, PREFIX_DIR ->
  VAR_DIR.

Also,

* Since the overwhelmingly predominant use of ILanguageManager is to get the
  description, and since .get_language_data(code)[0] is not very readable,
  split the interface into .get_description() and .get_charset().
* In the setup, automatically add all Mailman.bin modules as command line
  scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
361
361
    # invocations.
362
362
    checked = [0] * len(langs)
363
363
    checked[langi] = 1
364
 
    deflang = _(config.languages.get_language_data(
365
 
        config.DEFAULT_SERVER_LANGUAGE)[0])
 
364
    deflang = _(
 
365
        config.languages.get_description(config.DEFAULT_SERVER_LANGUAGE))
366
366
    ftable.AddRow([Label(_(
367
367
        """Initial list of supported languages.  <p>Note that if you do not
368
368
        select at least one initial language, the list will use the server
369
369
        default language of $deflang""")),
370
370
                   CheckBoxArray('langs',
371
 
                                 [_(config.languges.get_language_data(code)[0])
 
371
                                 [_(config.languges.get_description(code))
372
372
                                  for code in langs],
373
373
                                 checked=checked,
374
374
                                 values=langs)])