def __init__(self): Component.__init__(self) self.worldstream = None #self.worldstream = r.getServerConnection() self.queue = Queue.Queue() self.window = EstateManagementWindow(self, self.queue) self.uievents = UIEventManagement(self.window) self.rexlogic = r.getRexLogic() self.appdatafolder = "" try: self.appdatafolder = r.getApplicationDataDirectory() except: r.logInfo("Unexpected error:", sys.exc_info()[0]) self.rexlogic.connect("OnIncomingEstateOwnerMessage(QVariantList)", self.onEstateOwnerMessage) self.ents = [] self.managers = {} self.banned = {} self.accesslist = {} self.publicestate = True self.nameToUuidMapCache = {} self.savedusers = {} #self.estatesettings = EstateSettings(self.worldstream, self) self.estatesettings = None
if 0: #getserverconnection test #print dir(r) #print "YO", r.getTrashFolderId() #r.deleteObject(2351241440) worldstream = r.getServerConnection() #print worldstream, dir(worldstream), worldstream.SendObjectDeRezPacket worldstream.SendObjectDeRezPacket(2891301779, r.getTrashFolderId()) #ent = r.getEntity(r.getUserAvatarId()) #worldstream.SendObjectDeletePacket(1278500474, True) #~ ent = r.getEntity(2208825114) #~ print ent if 0: #getrexlogic test l = r.getRexLogic() print l, dir(l) #class entity_id_t(int): pass #entid = entity_id_t(2) #l.SendRexPrimData(entid) if 0: #rexlogic as service with qt mechanism #from __main__ import _naali #l = _naali.GetWorldLogic() #print l, dir(l) import naali qent = naali.worldlogic.GetUserAvatarEntityRaw() if qent is not None: print qent.Id pyent = r.getEntity(qent.Id) print pyent, pyent.id