[Zope-dev] Re: guarded_getattr
Stefan H. Holek
stefan at epy.co.at
Thu Feb 17 12:06:42 EST 2005
Oops, I just noticed there is a CMFCore test failing now, all
branches...
======================================================================
ERROR: test_move_cant_create_target_metatype_not_allowed
(CMFCore.tests.test_PortalFolder.PortalFolderCopySupportTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/Users/stefan/autotest/temp/python23-zope27-cmf15/Products/CMFCore/
tests/test_PortalFolder.py", line 1021, in
test_move_cant_create_target_metatype_not_allowed
, ce_regex='Insufficient Privileges'
File
"/Users/stefan/autotest/temp/python23-zope27-cmf15/Products/CMFCore/
tests/test_PortalFolder.py", line 855, in _assertCopyErrorUnauth
callable( *args, **kw )
File
"/Users/stefan/autotest/temp/python23-zope27/lib/python/OFS/
CopySupport.py", line 160, in manage_pasteObjects
self._verifyObjectPaste(ob, validate_src=op+1)
File
"/Users/stefan/autotest/temp/python23-zope27-cmf15/Products/CMFCore/
PortalFolder.py", line 533, in _verifyObjectPaste
PortalFolder.inheritedAttribute(
File
"/Users/stefan/autotest/temp/python23-zope27/lib/python/OFS/
CopySupport.py", line 358, in _verifyObjectPaste
method = self.restrictedTraverse(method_name)
File
"/Users/stefan/autotest/temp/python23-zope27/lib/python/OFS/
Traversable.py", line 204, in restrictedTraverse
return self.unrestrictedTraverse(path, default, restricted=1)
File
"/Users/stefan/autotest/temp/python23-zope27/lib/python/OFS/
Traversable.py", line 180, in unrestrictedTraverse
o = guarded_getattr(object, name, M)
AttributeError: manage_addFile
On 15. Feb 2005, at 21:29, Stefan H. Holek wrote:
> Most excellent fix, thanks!
>
> Stefan
>
>
> On 14. Feb 2005, at 20:24, Jim Fulton wrote:
>
>> Tres Seaver wrote:
>>> Jim and I worked on an alternative fix today -- he will be checking
>>> it
>>> in to your branch shortly, including modifying cAccessControl.
>>
>> Done.
>>
>> Jim
>>
--
Software Engineering is Programming when you can't. --E. W. Dykstra
More information about the Zope-Dev
mailing list