Author: jmorliaguet
Date: Tue Dec  6 00:26:13 2005
New Revision: 1963

Modified:
   cpsskins/branches/jmo-perspectives/storage/storage.py
Log:

- removed deprecation warning 



Modified: cpsskins/branches/jmo-perspectives/storage/storage.py
==============================================================================
--- cpsskins/branches/jmo-perspectives/storage/storage.py       (original)
+++ cpsskins/branches/jmo-perspectives/storage/storage.py       Tue Dec  6 
00:26:13 2005
@@ -65,12 +65,11 @@
         if name not in self:
             raise KeyError("%s not in the storage." % object)
 
-        chooser = INameChooser(self)
         copy = locationCopy(object)
-        new_name = chooser.chooseName(name, copy)
+        notify(ObjectCopiedEvent(copy, object))
 
-        notify(ObjectCopiedEvent(copy))
-        notify(ObjectAddedEvent(copy))
+        new_name = INameChooser(self).chooseName(name, copy)
         self[new_name] = copy
+        notify(ObjectAddedEvent(copy))
 
         return self[new_name]
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to