[Mailman-Developers] lowercase in mailman create function
barry at list.org
Tue Oct 9 15:03:11 CEST 2007
-----BEGIN PGP SIGNED MESSAGE-----
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
assert name == name.lower(), 'List name must be all lower case.'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
-----END PGP SIGNATURE-----
More information about the Mailman-Developers