comments, notify.debug->info

This commit is contained in:
Darren Ranalli 2003-10-15 21:17:51 +00:00
parent 1425878410
commit 4b4e9e0a0c
2 changed files with 7 additions and 4 deletions

View File

@ -16,6 +16,9 @@ class EditMgrAI(EditMgrBase.EditMgrBase):
# dumb linear search for now
# make this smarter (cache last-allocated id)
# Note that this uses the ID range associated with the
# AI's username, not the username of the user who requested
# the new entity.
for id in xrange(*EditorGlobals.getEntIdAllocRange()):
if not id in entIdDict:
break

View File

@ -94,8 +94,8 @@ class LevelSpec:
def setAttribChange(self, entId, attrib, value, username):
""" we're being asked to change an attribute """
LevelSpec.notify.debug("setAttribChange(%s): %s, %s = '%s'" %
(username, entId, attrib, repr(value)))
LevelSpec.notify.info("setAttribChange(%s): %s, %s = '%s'" %
(username, entId, attrib, repr(value)))
assert entId in self.entId2specDict
specDict = self.entId2specDict[entId]
assert specDict[entId].has_key(attrib)
@ -105,7 +105,7 @@ class LevelSpec:
self.level.handleAttribChange(entId, attrib, value, username)
def insertEntity(self, entId, entType, parentEntId):
LevelSpec.notify.debug('inserting entity %s' % entId)
LevelSpec.notify.info('inserting entity %s' % entId)
assert entId not in self.entId2specDict
assert self.entTypeReg is not None
globalEnts = self.privGetGlobalEntityDict()
@ -125,7 +125,7 @@ class LevelSpec:
self.level.handleEntityInsert(entId)
def removeEntity(self, entId):
LevelSpec.notify.debug('removing entity %s' % entId)
LevelSpec.notify.info('removing entity %s' % entId)
assert entId in self.entId2specDict
# notify the level
self.level.handleEntityRemove(entId)