[Zope] Re: Problem with product security and setDefaultAccess()

Evan Simpson evan at 4-am.com
Tue Sep 2 15:45:45 EDT 2003


Jean-Francois.Doyon at CCRS.NRCan.gc.ca wrote:
> class WFSResultSet:
>  
>         ClassSecurityInfo().setDefaultAccess("allow")
>  

Looks like you tried to save a line.  ClassSecurityInfo() only works if 
it is stored in the class and the class is initialized.  You need this:

class WFSResultSet:

         security = ClassSecurityInfo()
         security.setDefaultAccess("allow")

         [...rest of class snipped...]
InitializeClass(WFSResultSet)





More information about the Zope mailing list