[Zope3-checkins] CVS: Zope3/src/zope/security - _proxy.c:1.6
checker.py:1.44
Stephan Richter
srichter at cosmos.phy.tufts.edu
Tue Feb 24 09:01:37 EST 2004
Update of /cvs-repository/Zope3/src/zope/security
In directory cvs.zope.org:/tmp/cvs-serv28499/security
Modified Files:
_proxy.c checker.py
Log Message:
Addded header to C code and improved doc strings
=== Zope3/src/zope/security/_proxy.c 1.5 => 1.6 ===
--- Zope3/src/zope/security/_proxy.c:1.5 Thu May 29 05:06:36 2003
+++ Zope3/src/zope/security/_proxy.c Tue Feb 24 09:01:33 2004
@@ -1,6 +1,20 @@
-/*
- * Security proxy.
- */
+/*****************************************************************************
+*
+* Copyright (c) 2003, 2004 Zope Corporation and Contributors.
+* All Rights Reserved.
+*
+* This software is subject to the provisions of the Zope Public License,
+* Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
+* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+* WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+* WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+* FOR A PARTICULAR PURPOSE.
+*
+******************************************************************************
+Security Proxy Implementation
+
+$Id$
+*/
#include <Python.h>
#include "zope/proxy/proxy.h"
=== Zope3/src/zope/security/checker.py 1.43 => 1.44 ===
--- Zope3/src/zope/security/checker.py:1.43 Wed Dec 3 00:41:50 2003
+++ Zope3/src/zope/security/checker.py Tue Feb 24 09:01:33 2004
@@ -11,8 +11,7 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-"""
-$Id$
+"""Security Checkers
You can set the environment variable ZOPE_WATCH_CHECKERS to get additional
security checker debugging output on the standard error.
@@ -20,6 +19,8 @@
Setting ZOPE_WATCH_CHECKERS to 1 will display messages about unauthorized or
forbidden attribute access. Setting it to a larger number will also display
messages about granted attribute access.
+
+$Id$
"""
import os
import sys
@@ -464,12 +465,13 @@
return "\n".join(result)
-# Marker for public attributes
-
-# We want this to behave as a global, meaning it's pickled
-# by name, rather than value. We need to arrange that it has a suitable
-# __reduce__.
class Global(object):
+ """A global object that behaves like a string.
+
+ We want this to behave as a global, meaning it's pickled
+ by name, rather than value. We need to arrange that it has a suitable
+ __reduce__.
+ """
def __init__(self, name, module=None):
if module is None:
@@ -485,6 +487,7 @@
return "%s(%s,%s)" % (self.__class__.__name__,
self.__name__, self.__module__)
+# Marker for public attributes
CheckerPublic = Global('CheckerPublic')
# Now we wrap it in a security proxy so that it retains it's
More information about the Zope3-Checkins
mailing list