Adding TTYPE support (allows server to query client for information such as name and capabilities, assuming the client supports ttype).

This commit is contained in:
Griatch 2011-11-19 19:34:00 +01:00
parent 3337c0f787
commit 2104fd391b
6 changed files with 135 additions and 11 deletions

View file

@ -404,6 +404,7 @@ def create_player(name, email, password,
email = "dummy@dummy.com"
if user:
new_user = user
email = user.email
else:
if is_superuser:
new_user = User.objects.create_superuser(name, email, password)
@ -423,7 +424,6 @@ def create_player(name, email, password,
if player_dbobj:
new_db_player = player_dbobj
else:
# create new database object
new_db_player = PlayerDB(db_key=name, user=new_user)
new_db_player.save()