First time here? Check out the FAQ!
1

User name cannot contain a "." (period) or ' (apostrophe)

I have a small bug report:

I wanted to sign up as "Tomasz P. Szynalski". Unfortunately AskBot does not allow periods in the screen name.

Another character that doesn't work is the apostrophe (both the curly and straight kind): ’ '. What if someone's name is d’Artagnan?

(I wonder what happens when you import a user with a period from StackExchange?)

Evgeny's avatar
13.2k
Evgeny
updated 2011-06-15 03:41:38 -0500
Tomasz P. Szynalski's avatar
179
Tomasz P. Szynalski
asked 2011-06-14 17:30:47 -0500
edit flag offensive 0 remove flag close merge delete

Comments

The apostrophe doesn't work, either.
Tomasz P. Szynalski's avatar Tomasz P. Szynalski (2011-06-14 18:30:00 -0500) edit
add a comment see more comments

1 Answer

0

edit added those characters to the user name regex, still need to add a setting that permits only "standard" characters, as some users want to stick to stricter django conventions.

For example in Django you cannot have space in the user name. Apostrophe I think is not allowed either.

according to the django doc:

"Changed in Django 1.2: Usernames may now contain @, +, . and - characters.",

so these are added, will update code on this site tomorrow.

Evgeny's avatar
13.2k
Evgeny
updated 2011-06-15 03:10:38 -0500, answered 2011-06-14 17:34:55 -0500
edit flag offensive 0 remove flag delete link

Comments

You don't need the dump to repro the bug. Just try to change your screen name on Askbot.org to something that contains a period.
Tomasz P. Szynalski's avatar Tomasz P. Szynalski (2011-06-14 17:43:31 -0500) edit
I know, the bug is very easy to fix, although I will be busy with something else in the nearest few hours. Give it a shot, import your forum, if you have any problems, I will help. http://askbot.org/doc/import-data.html, you'll need to activate the importer app once in the settings.py
Evgeny's avatar Evgeny (2011-06-14 17:58:41 -0500) edit
I appreciate your offer, but I want to think about it a little more before I embark on the adventure of installing Python, Django, and probably a bunch of other software on my server :)
Tomasz P. Szynalski's avatar Tomasz P. Szynalski (2011-06-14 18:35:07 -0500) edit
well, three weeks is not that much time, you might as well start preparing.
Evgeny's avatar Evgeny (2011-06-14 19:52:49 -0500) edit
add a comment see more comments