[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/app/ * src/zope/app/utility/browser/ftests.py

Fred L. Drake, Jr. fdrake at gmail.com
Tue Aug 24 14:47:33 EDT 2004


Log message for revision 27251:
  * src/zope/app/utility/browser/ftests.py
    - new functional test of the Utility service contents view
  
  * src/zope/app/utility/configure.zcml
    - cleaned up security declarations for LocalUtilityService
    - added missing security declarations
  
  * src/zope/app/securitypolicy/configure.zcml
    - added missing security declarations for RoleRegistration
  
  * src/zope/app/registration/browser/__init__.py
    - fixed typo (zpi -> zapi)
  
  * src/zope/app/registration/configure.zcml
    - added missing security declarations for NotifyingRegistrationStack
  
  * src/zope/app/registration/interfaces.py
    - added missing attribute to IComponentRegistration
    - added note that ".component" is preferred over ".getComponent()"
  


Changed:
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/registration/browser/__init__.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/registration/configure.zcml
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/registration/interfaces.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/securitypolicy/configure.zcml
  A   Zope3/branches/ZopeX3-3.0/src/zope/app/utility/browser/ftests.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/utility/configure.zcml


-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/registration/browser/__init__.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/registration/browser/__init__.py	2004-08-24 18:39:31 UTC (rev 27250)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/registration/browser/__init__.py	2004-08-24 18:47:33 UTC (rev 27251)
@@ -140,7 +140,7 @@
 
             reg = info['registration']
             info['summary'] = reg.implementationSummary()
-            info['id'] = zpi.getPath(reg)
+            info['id'] = zapi.getPath(reg)
 
         # Add a dummy registration since the stack removes trailing None.
         registrations.append({"active": False,

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/registration/configure.zcml
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/registration/configure.zcml	2004-08-24 18:39:31 UTC (rev 27250)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/registration/configure.zcml	2004-08-24 18:47:33 UTC (rev 27251)
@@ -11,6 +11,13 @@
         />
   </content>
 
+  <content class=".registration.NotifyingRegistrationStack">
+    <require
+        permission="zope.ManageServices"
+        interface=".interfaces.IRegistrationStack"
+        />
+  </content>
+
   <adapter
       for=".interfaces.IRegisterable"
       provides=".interfaces.IRegistered"

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/registration/interfaces.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/registration/interfaces.py	2004-08-24 18:39:31 UTC (rev 27250)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/registration/interfaces.py	2004-08-24 18:47:33 UTC (rev 27251)
@@ -129,9 +129,14 @@
 
     def getComponent():
         """Return the component named in the registration.
+
+        This is provided for backward compatibility; please use the
+        `component` attribute instead.
         """
 
+    component = Attribute(_("the component named in the registration"))
 
+
 class IRegistrationStack(Interface):
     """A stack of registrations for a set of parameters
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/securitypolicy/configure.zcml
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/securitypolicy/configure.zcml	2004-08-24 18:39:31 UTC (rev 27250)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/securitypolicy/configure.zcml	2004-08-24 18:47:33 UTC (rev 27251)
@@ -77,6 +77,7 @@
   <content class=".role.RoleRegistration">
     <require
       permission="zope.ManageServices"
+      attributes="required with provided factory"
       interface="zope.app.utility.interfaces.IUtilityRegistration"
       set_schema="zope.app.utility.interfaces.IUtilityRegistration" />
   </content>

Copied: Zope3/branches/ZopeX3-3.0/src/zope/app/utility/browser/ftests.py (from rev 27250, Zope3/trunk/src/zope/app/utility/browser/ftests.py)


Property changes on: Zope3/branches/ZopeX3-3.0/src/zope/app/utility/browser/ftests.py
___________________________________________________________________
Name: svn:mime-type
   + text/x-python
Name: svn:eol-style
   + native

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/utility/configure.zcml
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/utility/configure.zcml	2004-08-24 18:39:31 UTC (rev 27250)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/utility/configure.zcml	2004-08-24 18:47:33 UTC (rev 27251)
@@ -7,10 +7,7 @@
     
     <require
       permission="zope.ManageServices"
-      attributes="queryRegistrations" />
-      
-    <require
-      permission="zope.ManageServices"
+      attributes="queryRegistrations"
       interface="zope.app.registration.interfaces.IRegistry" />
       
   </content>
@@ -19,6 +16,7 @@
     
     <require
       permission="zope.ManageServices"
+      attributes="required with provided factory"
       interface="zope.app.utility.interfaces.IUtilityRegistration"
       set_schema="zope.app.utility.interfaces.IUtilityRegistration" />
       



More information about the Zope3-Checkins mailing list