Example #1
0
 def undeclareAsset(self, obj):
     isDead = (obj.type
               in self.assetsByType) and (obj
                                          in self.assetsByType[obj.type])
     Environment.undeclareAsset(self, obj)
     if isDead:
         self.observers.notifyObservers(
             Notification(self, Notification.ntDEADASSET, obj))
Example #2
0
	def undeclareAsset(self, obj):
		isDead = (obj.type in self.assetsByType) and (obj in self.assetsByType[obj.type])
		Environment.undeclareAsset(self, obj)
		if isDead:
			self.observers.notifyObservers(Notification(self, Notification.ntDEADASSET, obj))