Example #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))
Example #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))