csmud: fix name approval with developer db

This commit is contained in:
Master Jumblespeed 2015-07-17 19:39:20 -04:00
parent 359e52ed11
commit ad680a934c

View file

@ -143,7 +143,7 @@ class AccountDB:
def addNameRequest(self, avId, name, accountID = None):
return True
def getNameStatus(self, avId, callback = None):
def getNameStatus(self, accountId, callback = None):
return 'APPROVED'
def removeNameRequest(self, avId):
@ -617,10 +617,13 @@ class GetAvatarsFSM(AvatarOperationFSM):
if wishNameState == 'OPEN':
nameState = 1
elif wishNameState == 'PENDING':
if self.nameStateData is None:
self.demand('QueryNameState')
return
actualNameState = self.nameStateData[str(avId)]
if accountDBType == 'remote':
if self.nameStateData is None:
self.demand('QueryNameState')
return
actualNameState = self.nameStateData[str(avId)]
else:
actualNameState = self.csm.accountDB.getNameStatus(self.account['ACCOUNT_ID'])
self.csm.air.dbInterface.updateObject(
self.csm.air.dbId,
avId,