Exemplo n.º 1
0
 def declareAsset(self, obj):
     isNew = (obj.type not in self.assetsByType) or (
         obj not in self.assetsByType[obj.type])
     Environment.declareAsset(self, obj)
     if isNew:
         self.observers.notifyObservers(
             Notification(self, Notification.ntNEWASSET, obj))
Exemplo n.º 2
0
	def declareAsset(self, obj):
		isNew = (obj.type not in self.assetsByType) or (obj not in self.assetsByType[obj.type])
		Environment.declareAsset(self, obj)
		if isNew:
			self.observers.notifyObservers(Notification(self, Notification.ntNEWASSET, obj))