[Zope3-checkins] CVS: Zope3/src/zope/app/security - __init__.py:1.1.2.2 permissionfield.py:1.1.2.3

Jim Fulton jim@zope.com
Wed, 25 Dec 2002 08:28:08 -0500


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

Modified Files:
      Tag: NameGeddon-branch
	__init__.py permissionfield.py 
Log Message:
Gor zope running again! 

I haven't tested everything. 
(Yes, we need functional tests. Maybe this week).

Good enough to merge into trunk.



=== Zope3/src/zope/app/security/__init__.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/security/__init__.py:1.1.2.1	Mon Dec 23 14:32:15 2002
+++ Zope3/src/zope/app/security/__init__.py	Wed Dec 25 08:27:35 2002
@@ -1,2 +1,18 @@
+##############################################################################
 #
-# This file is necessary to make this directory a package.
+# Copyright (c) 2002 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.
+# 
+##############################################################################
+
+# Register some standard types
+import _protections
+_protections.protect()
+del _protections


=== Zope3/src/zope/app/security/permissionfield.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zope/app/security/permissionfield.py:1.1.2.2	Tue Dec 24 21:20:45 2002
+++ Zope3/src/zope/app/security/permissionfield.py	Wed Dec 25 08:27:35 2002
@@ -16,14 +16,10 @@
 $Id$
 """
 
-from zope.schema.interfaces import IValueSet
 from zope.schema import ValueSet
 from zope.schema.interfaces import ValidationError
 from zope.component import getService
-
-class IPermissionField(IValueSet):
-    u"""Fields with Permissions as values
-    """
+from zope.app.interfaces.security import IPermissionField
 
 class PermissionField(ValueSet):
     __doc__ = IPermissionField.__doc__