[Zope-Checkins] CVS: Zope/lib/python/AccessControl - SecurityManagement.py:1.7.6.1

Brian Lloyd brian at zope.com
Wed Jan 21 14:59:16 EST 2004


Update of /cvs-repository/Zope/lib/python/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv32172/AccessControl

Modified Files:
      Tag: Zope-2_6-branch
	SecurityManagement.py 
Log Message:
fix sc loss bug


=== Zope/lib/python/AccessControl/SecurityManagement.py 1.7 => 1.7.6.1 ===
--- Zope/lib/python/AccessControl/SecurityManagement.py:1.7	Wed Aug 14 17:29:07 2002
+++ Zope/lib/python/AccessControl/SecurityManagement.py	Wed Jan 21 14:58:45 2004
@@ -29,6 +29,11 @@
 
     return manager
 
+def setSecurityManager(manager):
+    """install *manager* as current security manager for this thread."""
+    thread_id=get_ident()
+    _managers[thread_id]=manager
+
 import SpecialUsers
 from SecurityManager import SecurityManager
 try:    import thread




More information about the Zope-Checkins mailing list