[Mailman-Developers] lowercase in mailman create function

Barry Warsaw barry at list.org
Tue Oct 9 15:03:11 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Oct 7, 2007, at 6:17 PM, Mark Sapiro wrote:

> I agree, but the problem remains that upper and mixed case internal
> names don't work because of the many user interfaces that lower  
> case the
> name before accessing the list. So, what does Create() do when  
> asked to
> create a list with a non-lower case name?
>
> 1) Go ahead and create it.
> 2) Lower case the name and create that.
> 3) Raise raise Errors.BadListNameError.
>
> Presently it does 1), but I think 2) is better and perhaps 3) is best.

Let's do #3, or alternatively, we could add an assert since this is a  
constraint of Create().  E.g. something like this before the  
Utils.list_exists() call:

     assert name == name.lower(), 'List name must be all lower case.'

Cheers,
- -Barry

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFHC3wP2YZpQepbvXERAtToAJ9t1NToyQCtohVl3ZV0PWv2r5OodwCbBn7G
BRRVrLmbFfcGb72HlUxpkT8=
=OKYE
-----END PGP SIGNATURE-----


More information about the Mailman-Developers mailing list