[Zope3-checkins] CVS: Zope3/src/zope/app/contentdirective - contentdirective.py:1.1.2.2 meta.zcml:1.1.2.3

Jim Fulton jim@zope.com
Tue, 24 Dec 2002 07:52:02 -0500


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

Modified Files:
      Tag: NameGeddon-branch
	contentdirective.py meta.zcml 
Log Message:
Searched for and changed over 1200 references to Zope.something.

Most of these were either comments, doc strings, or permission ids.

Many were imports or ids in zcml.  (much zcml fixup is still needed.



=== Zope3/src/zope/app/contentdirective/contentdirective.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/contentdirective/contentdirective.py:1.1.2.1	Mon Dec 23 14:31:31 2002
+++ Zope3/src/zope/app/contentdirective/contentdirective.py	Tue Dec 24 07:51:01 2002
@@ -30,7 +30,7 @@
 from zope.security.checker import NamesChecker
 from zope.schema.interfaces import IField
 
-PublicPermission = 'Zope.Public'
+publicpermission = 'zope.Public'
 
 class ProtectionDeclarationException(Exception):
     """Security-protection-specific exceptions."""
@@ -123,7 +123,7 @@
             ]
             
     def allow(self, _context, attributes=None, interface=None):
-        """Like require, but with permission_id Zope.Public"""
+        """Like require, but with permission_id zope.Public"""
         return self.require(_context, PublicPermission, attributes, interface)
 
 
@@ -197,7 +197,7 @@
     
     assertPermission(permission)
     factory = ClassFactory(_class)
-    if permission and (permission != 'Zope.Public'):
+    if permission and (permission != 'zope.Public'):
         # XXX should getInterfaces be public, as below?
         factory = ProxyFactory(factory,
                                NamesChecker(('getInterfaces',),


=== Zope3/src/zope/app/contentdirective/meta.zcml 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zope/app/contentdirective/meta.zcml:1.1.2.2	Mon Dec 23 18:49:19 2002
+++ Zope3/src/zope/app/contentdirective/meta.zcml	Tue Dec 24 07:51:01 2002
@@ -49,7 +49,7 @@
     <subdirective
         name="allow"
         description="Declare a part of the class to be publicly
-            viewable (that is, requires the Zope.Public
+            viewable (that is, requires the zope.Public
             permission).  Only one of the following two
             attributes may be used."
     >