[Zope-dev] Re: guarded_getattr

Jim Fulton jim at zope.com
Thu Feb 17 12:11:06 EST 2005


This is a spurious failure.  Someone forgot to check in
a fix to this test that I checked in on the branch.

Jim

Stefan H. Holek wrote:
> 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
> 
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev at zope.org
> http://mail.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope )


-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org


More information about the Zope-Dev mailing list