RE: [Zope-dev] Request for amplification on new Product permissio ns API.
Are you calling:
Globals.default__class_init__(MyBasketClass)
on your Basket class? This is (poorly documented but) necessary for permissions declared in __ac_permissions__ to be correctly initialized.
Should I have this in Squishdot too?
Chris
Yes - basically any class that defines *or inherits from a class that defines* permissions should do this to make sure that the permissions along the inheritance heirarchy are cobbled together correctly at class initialization time. Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com
Brian Lloyd wrote:
Yes - basically any class that defines *or inherits from a class that defines* permissions should do this to make sure that the permissions along the inheritance heirarchy are cobbled together correctly at class initialization time.
I'm sure someone said recently that this got called autmoatically for you if you forgot... Hmm, Squishdot's worked fine without it AFAIK up until now. Is this only really required in 2.2, or even then not entirely? cheers, Chris PS: It's not ZClass basses or something else that require it? Just cheking I'm not being too dense...
participants (2)
-
Brian Lloyd -
Chris Withers