
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Feb 4, 2009, at 3:15 PM, Patrick Ben Koetter wrote:
I am having problems creating a mailing list with MM3 ALPHA.
Then I try to create a list:
# /var/lib/mailman/bin/create_list -C /etc/mailman/mailman.cfg mailman@mailman.state-of-mind.de Traceback (most recent call last): File "/var/lib/mailman/bin/create_list", line 18, in <module> mailman.bin.create_list.main() File "/root/mailman/src/mailman/bin/create_list.py", line 93, in main options = ScriptOptions() File "/root/mailman/src/mailman/options.py", line 80, in __init__ self.add_options() File "/root/mailman/src/mailman/bin/create_list.py", line 47, in
add_options super(ScriptOptions, self).add_options() File "/root/mailman/src/mailman/options.py", line 131, in add_options type='unicode', help=_('The mailing list name')) File "/usr/local/lib/python2.6/optparse.py", line 1004, in add_option raise TypeError, "invalid arguments" TypeError: invalid argumentsWhat should I do?
I'll try to fix this later today. The problem is that I've enabled
unicode literals in all the source files, but Python's standard
optparse.py module does not allow unicode options (I consider this a
bug in the module, may or may not get fixed for Python 2.6). The
solution is to wrap the option specs in str().
The other problem is that the command line scripts are not well
tested. Eventually I'll add unit tests for those.
Barry
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin)
iEYEARECAAYFAkmJ+z0ACgkQ2YZpQepbvXFbAQCfXNNHAmgKfLguOZtI+WbzBnj/ UiAAmwYu4N0Qu79e6trhuFqJlfJY4bC7 =Qo/H -----END PGP SIGNATURE-----