[CMF-checkins] CVS: Products/CMFCore - FSObject.py:1.19

Jens Vagelpohl jens at dataflake.org
Sat Dec 4 15:29:37 EST 2004


Update of /cvs-repository/Products/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv393/CMFCore

Modified Files:
	FSObject.py 
Log Message:
- FSObject: Ensure that a cache manager association on a Filesystem-based
  object in the Skins Tool gets applied to the customized object in the
  ZODB upon customization. (http://www.zope.org/Collectors/CMF/304)


=== Products/CMFCore/FSObject.py 1.18 => 1.19 ===
--- Products/CMFCore/FSObject.py:1.18	Thu Aug 12 11:07:39 2004
+++ Products/CMFCore/FSObject.py	Sat Dec  4 15:29:07 2004
@@ -79,6 +79,12 @@
 
         obj = self._createZODBClone()
 
+        # Preserve cache manager associations
+        cachemgr_id = self.ZCacheable_getManagerId()
+        if ( cachemgr_id and 
+             getattr(obj, 'ZCacheable_setManagerId', None) is not None ):
+            obj.ZCacheable_setManagerId(cachemgr_id)
+
         id = obj.getId()
         fpath = tuple( folder_path.split('/') )
         portal_skins = getToolByName(self,'portal_skins')



More information about the CMF-checkins mailing list