[ZCM] [ZC] 1211/ 1 Request "Zope 2.7 always uses Python implementation of ZopeSecurityPolicy"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Wed Jan 28 15:01:23 EST 2004


Issue #1211 Update (Request) "Zope 2.7 always uses Python implementation of ZopeSecurityPolicy"
 Status Pending, Zope/bug medium
To followup, visit:
  http://zope.org/Collectors/Zope/1211

==============================================================
= Request - Entry #1 by shh on Jan 28, 2004 3:01 pm

Zope 2.7 appears to *always* use the Python implementation of ZopeSecurityPolicy. 

The implementation is initialized by a call to ImplPython.setDefaultBehaviors() in module ImplPython. Future calls to AccessControl.setImplementation('C') fail to change the security policy implementation (to C).

One way to reproduce this is to run 'AccessControl/tests/testUserFolder.py' which has the same new tests (and issues) like reported in http://zope.org/Collectors/Zope/1210 for 2.6. 

You will notice that the test *fails* even though use of the C implementation would be expected by default. 

You can force a C-ZopeSecurityPolicy by uncommenting the marked block near the top of 'testUserFolder.py'. This again makes all tests pass.


==============================================================




More information about the Zope-Collector-Monitor mailing list