Empty log message

darcs-hash:20060502235404-4ec08-3d748bece109de4146c02211f69242f6ac7fdc26.gz
This commit is contained in:
chove 2006-05-03 01:54:04 +02:00
parent c84298f38e
commit aee6feb7dd
2 changed files with 4 additions and 10 deletions

View file

@ -148,12 +148,7 @@ def isValidName(request, name):
@param name: user name, unicode @param name: user name, unicode
""" """
normalized = normalizeName(name) normalized = normalizeName(name)
#### HACK CRANS return (name == normalized) and not wikiutil.isGroupPage(request, name)
#return (name == normalized) and not wikiutil.isGroupPage(request, name)
return not name or ((name == normalized) \
and not wikiutil.isGroupPage(request, name)
and wikiutil.isStrictWikiname(name))
#### HACK CRANS
def encodeList(items): def encodeList(items):

View file

@ -145,7 +145,7 @@ space between words. Group page name is not allowed.""") % wikiutil.escape(name)
else: else:
# Save user profile # Save user profile
theuser = user.User(self.request) theuser = user.User(self.request)
# Require non-empty name # Require non-empty name
try: try:
theuser.name = form['username'][0] theuser.name = form['username'][0]
@ -172,7 +172,7 @@ space between words. Group page name is not allowed.""") % wikiutil.escape(theus
return _("This user name already belongs to somebody else.") return _("This user name already belongs to somebody else.")
else: else:
newuser = 0 newuser = 0
#### HACK SAUVAGE #### HACK SAUVAGE
import sys import sys
sys.path.append('/usr/scripts/gestion/') sys.path.append('/usr/scripts/gestion/')
@ -184,9 +184,8 @@ Pour des raisons de s
possible que depuis la zone CRANS. possible que depuis la zone CRANS.
Si vous possédez un compte sur zamok, vous pouvez y exécuter Si vous possédez un compte sur zamok, vous pouvez y exécuter
creer_compte_wiki.""") creer_compte_wiki.""")
#### FIN DU HACK #### FIN DU HACK
# try to get the password and pw repeat # try to get the password and pw repeat
password = form.get('password', [''])[0] password = form.get('password', [''])[0]
password2 = form.get('password2',[''])[0] password2 = form.get('password2',[''])[0]