[CMF-checkins] CVS: Products/CMFCore - FSObject.py:1.6
Jens Vagelpohl
jens@zope.com
Tue, 27 Nov 2001 17:05:33 -0500
Update of /cvs-repository/Products/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv13827
Modified Files:
FSObject.py
Log Message:
Fixed error that would occur when object ID and custom folder ID
happen to be the same.
PTK Tracker issue 383 by ChrisW
=== Products/CMFCore/FSObject.py 1.5 => 1.6 ===
from DateTime import DateTime
-from utils import expandpath
+from utils import expandpath, getToolByName
import CMFCorePermissions
class FSObject(Acquisition.Implicit, Item):
@@ -139,7 +139,8 @@
id = obj.getId()
fpath = tuple(split(folder_path, '/'))
- folder = self.restrictedTraverse(fpath)
+ portal_skins = getToolByName(self,'portal_skins')
+ folder = portal_skins.restrictedTraverse(fpath)
folder._verifyObjectPaste(obj, validate_src=0)
folder._setObject(id, obj)