Ask Your Question
1

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

asked 2011-06-14 17:30:47 -0500

Tomasz P. Szynalski gravatar image

updated 2011-06-15 03:41:38 -0500

Evgeny gravatar image

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?)

edit retag flag offensive close merge delete

Comments

The apostrophe doesn't work, either.
Tomasz P. Szynalski gravatar imageTomasz P. Szynalski ( 2011-06-14 18:30:00 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2011-06-14 17:34:55 -0500

Evgeny gravatar image

updated 2011-06-15 03:10:38 -0500

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.

edit flag offensive delete link more

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 gravatar imageTomasz 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 gravatar imageEvgeny ( 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 gravatar imageTomasz 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 gravatar imageEvgeny ( 2011-06-14 19:52:49 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-06-14 17:30:47 -0500

Seen: 210 times

Last updated: Jun 15 '11