[Zope-CMF] Bug in CMFCore.FSMetadata._securityParser

Jean Jordaan jean at upfrontsystems.co.za
Mon Aug 4 17:37:55 EDT 2003


Hi all

Looks like FSMetadata._securityParser doesn't go all the way.
It stores acquire as a string. The problem is that both "0"
and "1" evaluate as true. So it's impossible to disable
acquired permissions in .metadata files at the moment. The
simplest fix is just to use int, which will raise a ValueError
for illegal values ..

          acquire, roles = data.split(':')
+        acquire = int(acquire)

(I'm using CMF 1.4)

-- 
Jean Jordaan
http://www.upfrontsystems.co.za




More information about the Zope-CMF mailing list