[Zope-dev] Fix for Can't Change Image & File Security Settings in Zope 2.2.x

Chris Withers chrisw@nipltd.com
Fri, 29 Sep 2000 15:25:56 +0100


Hi,

You may, like me, have noticed that you can't change security settings
on Image and File objects in Zope 2.2.x.

This is because the __call__ method of these objects was removed by the
appropriate bit of __ac_permissions__ wasn't taken out. The patch in the
PS fixes this...

cheers,

Chris

PS:
===================================================================
RCS file: /cvs-repository/Zope2/lib/python/OFS/Image.py,v
retrieving revision 1.105.2.12
diff -r1.105.2.12 Image.py
169c169
<           'getContentType', '__call__', '')),
---
>           'getContentType', '')),
450c450
<           'getContentType', '__call__', '')),
---
>           'getContentType', '')),