Bug 333011 - withlist crashes with NameError: global name 'C_' is not defined
Summary: withlist crashes with NameError: global name 'C_' is not defined
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mailman
Version: 7
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
Assignee: Tomas Smetana
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-10-15 19:02 UTC by Eric Smith
Modified: 2007-11-30 22:12 UTC (History)
0 users

Fixed In Version: 2.1.9-5.1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-11-26 18:47:18 UTC
Type: ---


Attachments (Terms of Use)
Patch for F-7 (356 bytes, patch)
2007-10-16 07:31 UTC, Tomas Smetana
no flags Details | Diff

Description Eric Smith 2007-10-15 19:02:18 UTC
Description of problem:

withlist, a tool provided by mailman for list maintenance, crashes with the
error "NameError: global name 'C_' is not defined"

Version-Release number of selected component (if applicable):
    mailman-2.1.9-5  (Fedora 7)
    mailman-2.1.9-7  (Rawhide)

How reproducible:

  100%

Steps to Reproduce:
1. log in as user 'mailman'  (su to root, then "su - mailman --shell /bin/bash")
2. run bin/withlist

Actual results:

Traceback (most recent call last):
  File "bin/withlist", line 297, in <module>
    main()
  File "bin/withlist", line 236, in main
    warning = C_('No list name supplied.')
NameError: global name 'C_' is not defined

Expected results:

With no arguments, withlist normally gives a help message

Additional info:

Apparently the Fedora mailman package patches a lot of instances of _( to C_(. 
It appears that this hasn't been tested in withlist.

Comment 1 Eric Smith 2007-10-15 19:04:52 UTC
I have a mailing list that is broken, and I desperately need to run fix_url.py
on it (using withlist), but currently cannot do so.  I tried to manually fix the
list by editing its configuration (using config_list to export it, edit, and
reimport), but that was not sufficient.

Comment 2 Tomas Smetana 2007-10-16 07:31:51 UTC
Created attachment 228331 [details]
Patch for F-7

I'll test this patch and commit to F-7 and devel.  The error seems to be in
Mailman for quite a long time.	Thanks for reporting.

Comment 3 Eric Smith 2007-10-16 17:29:32 UTC
Your patch solves the problem.  Thanks, Tomas!

Comment 4 Fedora Update System 2007-10-18 02:27:38 UTC
mailman-2.1.9-5.1 has been pushed to the Fedora 7 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update mailman'

Comment 5 Fedora Update System 2007-11-06 16:16:46 UTC
mailman-2.1.9-8.fc8 has been pushed to the Fedora 8 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update mailman'

Comment 6 Fedora Update System 2007-11-13 00:09:28 UTC
mailman-2.1.9-8.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2007-11-26 18:47:16 UTC
mailman-2.1.9-5.1 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.