Re: usernames and case sensitivity

2008-03-28 Thread Jonathan Lukens
> (Now that I think of it, I'm somewhat surprised that Django's > contrib.auth allows mixed case usernames. Quickly scanning through it, > all examples seem to use all lower-case anyway.) Surprised me too, but I'm not a real web developer (I pay the bills by translating technical literature) so

Re: usernames and case sensitivity

2008-03-28 Thread Jonathan Lukens
> Using the "iexact" option would fix this case. Take a look > at:http://www.djangobook.com/en/1.0/appendixC/ > towards the bottom, in the Field Lookups section. Yes, this is what I meant by "filter with case-insensitive queries whenever the username is URL param" -- I just couldn't remember

Re: usernames and case sensitivity

2008-03-28 Thread Evert Rol
> You've understood me perfectly. I was just being picky. I would > *like* to preserve the option of cased usernames, but if wikimedia > doesn't fuss with it, why should I? I'll just add a clean_username > method to the registration form that .lower() 's the name entered as > suggested. >

Re: usernames and case sensitivity

2008-03-28 Thread Colin Bean
On Fri, Mar 28, 2008 at 10:02 AM, Jonathan Lukens <[EMAIL PROTECTED]> wrote: > > Hi Evert, > > > > > 2) Validate new usernames for case-insensitive uniqueness and filter > > > with case-insensitive queries whenever the username is URL param. > > > > def view(request, username, child=None,

Re: usernames and case sensitivity

2008-03-28 Thread Jonathan Lukens
You've understood me perfectly. I was just being picky. I would *like* to preserve the option of cased usernames, but if wikimedia doesn't fuss with it, why should I? I'll just add a clean_username method to the registration form that .lower() 's the name entered as suggested. Thank you for

Re: usernames and case sensitivity

2008-03-28 Thread Evert Rol
>>> 2) Validate new usernames for case-insensitive uniqueness and filter >>> with case-insensitive queries whenever the username is URL param. > >> def view(request, username, child=None, ...): >> username = username.lower() > > The problem here is that that even if 'Charlie' and 'charlie'

Re: usernames and case sensitivity

2008-03-28 Thread Jonathan Lukens
Hi Evert, > > 2) Validate new usernames for case-insensitive uniqueness and filter > > with case-insensitive queries whenever the username is URL param. > def view(request, username, child=None, ...): >username = username.lower() The problem here is that that even if 'Charlie' and

Re: usernames and case sensitivity

2008-03-28 Thread Evert Rol
> I am writing an application that involves a number of nested parent- > child relationships, where users create objects that each in turn have > sub-objects. So far the URL structure looks like this: > > example.com/username/ > example.com/username/child1/, example.com/username/child2/ >

usernames and case sensitivity

2008-03-28 Thread Jonathan Lukens
I am writing an application that involves a number of nested parent- child relationships, where users create objects that each in turn have sub-objects. So far the URL structure looks like this: example.com/username/ example.com/username/child1/, example.com/username/child2/