[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/s merged from trunk
25891:
Jim Fulton
jim at zope.com
Fri Jul 2 15:20:23 EDT 2004
Log message for revision 26053:
merged from trunk 25891:
Began implementing more security checking in C
Implemented zop.security.checker.selectChecker in C.
-=-
Modified: Zope3/branches/ZopeX3-3.0/setup.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/setup.py 2004-07-02 19:12:35 UTC (rev 26052)
+++ Zope3/branches/ZopeX3-3.0/setup.py 2004-07-02 19:20:23 UTC (rev 26053)
@@ -232,6 +232,11 @@
include_dirs = ["src/zope/proxy"],
depends = ["src/zope/proxy/proxy.h"]),
+ Extension("zope.security._zope_security_checker",
+ ["src/zope/security/_zope_security_checker.c"],
+ include_dirs = [],
+ depends = []),
+
Extension("zope.interface._zope_interface_coptimizations",
["src/zope/interface/_zope_interface_coptimizations.c"]),
Copied: Zope3/branches/ZopeX3-3.0/src/zope/security/_zope_security_checker.c (from rev 25891, Zope3/trunk/src/zope/security/_zope_security_checker.c)
Property changes on: Zope3/branches/ZopeX3-3.0/src/zope/security/_zope_security_checker.c
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: Zope3/branches/ZopeX3-3.0/src/zope/security/checker.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/security/checker.py 2004-07-02 19:12:35 UTC (rev 26052)
+++ Zope3/branches/ZopeX3-3.0/src/zope/security/checker.py 2004-07-02 19:20:23 UTC (rev 26053)
@@ -636,6 +636,16 @@
# o a function returning None or a Checker
#
_checkers = {}
+
+# Get optimized versions
+try:
+ import zope.security._zope_security_checker
+except ImportError:
+ pass
+else:
+ from zope.security._zope_security_checker import _checkers, selectChecker
+ from zope.security._zope_security_checker import NoProxy
+
_getChecker = _checkers.get
_defaultChecker = Checker({}.get)
More information about the Zope3-Checkins
mailing list