'This is a generic hook called by Evennia when this object is
saved to the database the very first time.  You generally
don\'t override this method but the hooks called by it.'

def at_first_save(self):

    self.basetype_setup()
    self.at_player_creation()
    permissions = settings.PERMISSION_PLAYER_DEFAULT
    if hasattr(self, '_createdict'):
        cdict = self._createdict
        if cdict.get('locks'):
            self.locks.add(cdict['locks'])
        if cdict.get('permissions'):
            permissions = cdict['permissions']
        del self._createdict
    self.permissions.add(permissions)
