[Zope3-checkins] CVS: Zope3/src/zope/security - builtins.py:1.2 context.py:1.5 interfaces.py:1.8 interpreter.py:1.5 management.py:1.5 proxy.py:1.9 simplepolicies.py:1.6

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Feb 20 15:42:43 EST 2004


Update of /cvs-repository/Zope3/src/zope/security
In directory cvs.zope.org:/tmp/cvs-serv839/src/zope/security

Modified Files:
	builtins.py context.py interfaces.py interpreter.py 
	management.py proxy.py simplepolicies.py 
Log Message:
Improved doc strings.


=== Zope3/src/zope/security/builtins.py 1.1 => 1.2 ===
--- Zope3/src/zope/security/builtins.py:1.1	Mon Dec 30 22:35:13 2002
+++ Zope3/src/zope/security/builtins.py	Fri Feb 20 15:42:12 2004
@@ -11,9 +11,8 @@
 # FOR A PARTICULAR PURPOSE
 #
 ##############################################################################
-"""
+"""Protection of builtin objects.
 
-Revision information:
 $Id$
 """
 import sys


=== Zope3/src/zope/security/context.py 1.4 => 1.5 ===
--- Zope3/src/zope/security/context.py:1.4	Tue Jun  3 11:09:24 2003
+++ Zope3/src/zope/security/context.py	Fri Feb 20 15:42:12 2004
@@ -11,8 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""Default ISecurityContext implementation."""
+"""Default 'ISecurityContext' implementation.
 
+$Id$
+"""
 from zope.security.interfaces import ISecurityContext
 from zope.interface import implements
 


=== Zope3/src/zope/security/interfaces.py 1.7 => 1.8 ===
--- Zope3/src/zope/security/interfaces.py:1.7	Thu Jun  5 07:45:03 2003
+++ Zope3/src/zope/security/interfaces.py	Fri Feb 20 15:42:12 2004
@@ -15,7 +15,6 @@
 
 $Id$
 """
-
 from zope.interface import Interface, Attribute
 
 class ISecurityManagementSetup(Interface):


=== Zope3/src/zope/security/interpreter.py 1.4 => 1.5 ===
--- Zope3/src/zope/security/interpreter.py:1.4	Thu Feb  5 17:18:47 2004
+++ Zope3/src/zope/security/interpreter.py	Fri Feb 20 15:42:12 2004
@@ -22,7 +22,6 @@
 
 $Id$
 """
-
 from zope.security.builtins import RestrictedBuiltins
 
 class RestrictedInterpreter:
@@ -32,6 +31,8 @@
         self.locals = {}
 
     def ri_exec(self, code):
-        # XXX What is the type of code?
+        """Execute Python code in a restricted environment.
+
+        The value of code can be either source or binary code."""
         self.globals['__builtins__'] = RestrictedBuiltins
         exec code in self.globals, self.locals


=== Zope3/src/zope/security/management.py 1.4 => 1.5 ===
--- Zope3/src/zope/security/management.py:1.4	Mon Jun  2 10:31:48 2003
+++ Zope3/src/zope/security/management.py	Fri Feb 20 15:42:12 2004
@@ -11,12 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
-Default ISecurityManagement implementation
+"""Default 'ISecurityManagement' implementation
 
 $Id$
 """
-
 # Special system user that has all permissions
 # zope.security.manager needs it
 system_user = object()


=== Zope3/src/zope/security/proxy.py 1.8 => 1.9 ===
--- Zope3/src/zope/security/proxy.py:1.8	Wed May 28 13:19:24 2003
+++ Zope3/src/zope/security/proxy.py	Fri Feb 20 15:42:12 2004
@@ -11,11 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Helper functions for Proxies.
 
 $Id$
 """
-
 from zope.proxy import getProxiedObject
 from zope.security._proxy import getChecker
 from zope.security._proxy import _Proxy as Proxy
@@ -31,7 +30,7 @@
     trusted and the proxy can always be recreated by calling the
     proxy factory and getting back a proxy with the same checker.
 
-    XXX More thought needs to be given to assuring this contact.
+    XXX More thought needs to be given to assuring this contract.
     """
     if ((type(object) is Proxy) and
         isinstance(getChecker(object), TrustedCheckerBase)


=== Zope3/src/zope/security/simplepolicies.py 1.5 => 1.6 ===
--- Zope3/src/zope/security/simplepolicies.py:1.5	Tue Jun  3 11:09:24 2003
+++ Zope3/src/zope/security/simplepolicies.py	Fri Feb 20 15:42:12 2004
@@ -11,7 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""Simple ISecurityPolicy implementations."""
+"""Simple 'ISecurityPolicy' implementations.
+
+$Id$
+"""
 
 from zope.security.interfaces import ISecurityPolicy
 from zope.security.management import system_user




More information about the Zope3-Checkins mailing list