[ZCM] [ZC] 75/ 2 Resolve "ModuleSecurityInfo declarations in two places stomp on each other."
Collector: Zope Bugs and Patches ...
zope-coders@zope.org
Fri, 15 Feb 2002 13:48:32 -0500
Issue #75 Update (Resolve) "ModuleSecurityInfo declarations in two places stomp on each other."
Status Resolved, Zope/bug medium
To followup, visit:
http://collector.zope.org/Zope/75
==============================================================
= Resolve - Entry #2 by evan on Feb 15, 2002 1:48 pm
Status: Pending => Resolved
Fixed in 2.5 and trunk
________________________________________
= Request - Entry #1 by Anonymous User on Dec 7, 2001 10:21 am
Doing this in one module:
from AccessControl import ModuleSecurityInfo
security = ModuleSecurityInfo('Products')
security.declarePublic('Transience')
security = ModuleSecurityInfo('Products.Transience')
security.declarePublic('MaxTransientObjectsExceeded')
And this in another:
from AccessControl import ModuleSecurityInfo
security = ModuleSecurityInfo('Products')
security.declarePublic('Sessions')
security = ModuleSecurityInfo('Products.Sessions')
security.declarePublic('BrowserIdManagerErr')
security.declarePublic('SessionDataManagerErr')
Only one set of security declarations will be applied (evidently overwriting the other), depending on the ordering of their initialization.
==============================================================