[CMF-checkins] CVS: Products/CMFDefault - Image.py:1.23.4.4

Jens Vagelpohl jens at dataflake.org
Fri Aug 6 07:32:45 EDT 2004


Update of /cvs-repository/Products/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv9178/CMFDefault

Modified Files:
      Tag: CMF-1_4-branch
	Image.py 
Log Message:
- Make sure PortalContent's manage_afterClone gets called when an Image is
  pasted (http://www.zope.org/Collectors/CMF/176)


=== Products/CMFDefault/Image.py 1.23.4.3 => 1.23.4.4 ===
--- Products/CMFDefault/Image.py:1.23.4.3	Tue Jul 27 17:35:15 2004
+++ Products/CMFDefault/Image.py	Fri Aug  6 07:32:45 2004
@@ -169,6 +169,12 @@
         PortalContent.manage_beforeDelete(self, item, container)
         OFS.Image.Image.manage_beforeDelete(self, item, container)
 
+    security.declarePrivate('manage_afterClone')
+    def manage_afterClone(self, item):
+        """Both of my parents have an afterClone method"""
+        PortalContent.manage_afterClone(self, item)
+        OFS.Image.Image.manage_afterClone(self, item)
+
     security.declarePrivate('_isNotEmpty')
     def _isNotEmpty(self, file):
         """ Do various checks on 'file' to try to determine non emptiness. """



More information about the CMF-checkins mailing list