Mercurial > fife-parpg
diff clients/editor/plugins/LayerTool.py @ 324:e249fa887259
* Split EventListener into several internal subclasses. This fixes issue with multiple inheritance where each BaseClass.__init__() call would overwrite the previous one. This meant that you could only add EventListener to one type of event managers.
* MapView now adds maps and layers to EventListener
* LayerEditor should now fetch only NameClash exceptions when creating or editing layers
author | cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 21 Aug 2009 14:39:54 +0000 |
parents | b64ce990abb1 |
children | 7e5717105212 |
line wrap: on
line diff
--- a/clients/editor/plugins/LayerTool.py Tue Aug 18 18:03:54 2009 +0000 +++ b/clients/editor/plugins/LayerTool.py Fri Aug 21 14:39:54 2009 +0000 @@ -444,7 +444,7 @@ try: layer = self.map.createLayer(str(layerId), cellgrid) - except: + except fife.NameClash: print 'The layer ' + str(layerId) + ' already exists!' return else: