def create_objects():
 logger.log_info('Creating objects (Player #1 and Limbo room) ...')
 god_player = get_god_player()
 player_typeclass = settings.BASE_PLAYER_TYPECLASS
 god_player.swap_typeclass(player_typeclass, clean_attributes=True)
 god_player.basetype_setup()
 god_player.at_player_creation()
 god_player.locks.add('examine:perm(Immortals);edit:false();delete:false();boot:false();msg:all()')
 god_player.permissions.add('Immortals')
 character_typeclass = settings.BASE_CHARACTER_TYPECLASS
 god_character = create.create_object(character_typeclass, key=god_player.username, nohome=True)
 god_character.id = 1
 god_character.save()
 god_character.db.desc = _('This is User #1.')
 god_character.locks.add('examine:perm(Immortals);edit:false();delete:false();boot:false();msg:all();puppet:false()')
 god_character.permissions.add('Immortals')
 god_player.attributes.add('_first_login', True)
 god_player.attributes.add('_last_puppet', god_character)
 try:
  god_player.db._playable_characters.append(god_character)
 except AttributeError:
  god_player.db_playable_characters = [god_character]
 room_typeclass = settings.BASE_ROOM_TYPECLASS
 limbo_obj = create.create_object(room_typeclass, _('Limbo'), nohome=True)
 limbo_obj.id = 2
 limbo_obj.save()
 limbo_obj.db.desc = LIMBO_DESC.strip()
 limbo_obj.save()
 if (not god_character.location):
  god_character.location = limbo_obj
 if (not god_character.home):
  god_character.home = limbo_obj

def create_objects ( ) : logger . log_info ( 'Creating objects (Player #1 and Limbo room) ...' ) god_player = get_god_player ( ) player_typeclass = settings . BASE_PLAYER_TYPECLASS god_player . swap_typeclass ( player_typeclass , clean_attributes = True ) god_player . basetype_setup ( ) god_player . at_player_creation ( ) god_player . locks . add ( 'examine:perm(Immortals);edit:false();delete:false();boot:false();msg:all()' ) god_player . permissions . add ( 'Immortals' ) character_typeclass = settings . BASE_CHARACTER_TYPECLASS god_character = create . create_object ( character_typeclass , key = god_player . username , nohome = True ) god_character . id = 1 god_character . save ( ) god_character . db . desc = _ ( 'This is User #1.' ) god_character . locks . add ( 'examine:perm(Immortals);edit:false();delete:false();boot:false();msg:all();puppet:false()' ) god_character . permissions . add ( 'Immortals' ) god_player . attributes . add ( '_first_login' , True ) god_player . attributes . add ( '_last_puppet' , god_character ) try : god_player . db . _playable_characters . append ( god_character ) except AttributeError : god_player . db_playable_characters = [ god_character ] room_typeclass = settings . BASE_ROOM_TYPECLASS limbo_obj = create . create_object ( room_typeclass , _ ( 'Limbo' ) , nohome = True ) limbo_obj . id = 2 limbo_obj . save ( ) limbo_obj . db . desc = LIMBO_DESC . strip ( ) limbo_obj . save ( ) if ( not god_character . location ) : god_character . location = limbo_obj if ( not god_character . home ) : god_character . home = limbo_obj
instantiate objects as per the given specifications .