Fixed the migrations from a pre-populated database to the many-char-per-player branch.

This commit is contained in:
Griatch 2013-04-10 21:45:56 +02:00
parent ea4c30a0b1
commit 4669b8ed89
3 changed files with 37 additions and 6 deletions

View file

@ -60,6 +60,9 @@ def create_objects():
god_character.locks.add("examine:perm(Immortals);edit:false();delete:false();boot:false();msg:all();puppet:false()")
god_character.save()
# note that there is no security issue with setting the _superuser_character flag - the system
# will only grant superuser access to a character with this flag if its Player also has the
# superuser bit set. It only marks that the character should not "mask" the superuser privileges.
god_character.set_attribute("_superuser_character", True)
god_player.set_attribute("_first_login", True)
god_player.set_attribute("_last_puppet", god_character)