Robert Allerstorfer wrote:
> On Fri, 16 Mar 2007, 17:30 GMT-04 Tres Seaver wrote:
> 
> [Robert Allerstorfer]:
>>>>>> 2007-03-14T08:01:25 WARNING Init Class
>>>>>> Products.ATContentTypes.content.base.ATCTFolderMixin has a security
>>>>>> declaration for nonexistent method 'manage_copyObjects'
> 
>> Isn't there a module name / line number associated with the log message?
> 
> No, but I recognized that this event message originates from
> %{l_prefix}/lib/zope-plone/ATContentTypes/content/base.py
> which is part of "AT Content Types" 1.1.4
> (http://plone.org/products/atcontenttypes/), line 617:
> 
> security.declareProtected(Permissions.copy_or_move, 'manage_copyObjects')
> 
> So the question is why this Zope installation cannot find the method
> 'manage_copyObjects'. 

Becuase the class doesn't actually declare that method.  Its author was
following an earlier pattern which allowed base classes to modify the
permission settings on an inherited method, without overriding it.
That technique no longer works.  The attached patch will remove the warning.


Tres.
-- 
===================================================================
Tres Seaver          +1 540-429-0999          [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"    http://palladion.com
Index: content/base.py
===================================================================
--- content/base.py	(revision 30968)
+++ content/base.py	(working copy)
@@ -609,9 +609,6 @@
 
     security       = ClassSecurityInfo()
 
-    # copy from PloneFolder's
-    security.declareProtected(Permissions.copy_or_move, 'manage_copyObjects')
-
     def __browser_default__(self, request):
         """ Set default so we can return whatever we want instead
         of index_html """

Reply via email to