[Zope3-checkins] CVS: Zope3 - Makefile:1.37 ftesting.zcml:1.12 products.zcml.in:1.11 site.zcml:1.23

Chris McDonough chrism at plope.com
Wed Jan 14 17:55:46 EST 2004


Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv5558

Modified Files:
	Makefile ftesting.zcml products.zcml.in site.zcml 
Log Message:
Merge security policy refactoring:

 - Moved all role- and grant-related functionality into
   zope.products.securitypolicy (and out of zope.app.security.grant).
   The zope.products.securitypolicy implementation is exactly
   the same as the old implementation; no changes were made
   to the actual mechanics of role-permission or principal-permission
   grants.  The only real difference is that all functionality
   that is the purview of what we want a security policy to have
   control of is now in that one place.

 - Created new modulealias directive which can be used to provide
   aliases to older modules (to not break existing ZODBs when
   module locations change).

 - Added minor feature: "make debug" launches a debug session in the
   spirit of Zope 2's "zopectl debug".
   


=== Zope3/Makefile 1.36 => 1.37 ===
--- Zope3/Makefile:1.36	Thu Oct 30 03:15:30 2003
+++ Zope3/Makefile	Wed Jan 14 17:55:15 2004
@@ -33,6 +33,11 @@
 run: inplace
 	$(PYTHON) z3.py
 
+debug: principals.zcml
+	PYTHONPATH=`pwd`/src:$(PYTHONPATH) $(PYTHON) -i -c \
+            "from zope.app import Application;\
+             app = Application('Data.fs', 'site.zcml')()"
+
 clean:
 	find . \( -name '*.o' -o -name '*.so' -o -name '*.py[co]' -o -name '*.dll' \) -exec rm -f {} \;
 	rm -rf build


=== Zope3/ftesting.zcml 1.11 => 1.12 ===
--- Zope3/ftesting.zcml:1.11	Wed Dec 17 16:30:01 2003
+++ Zope3/ftesting.zcml	Wed Jan 14 17:55:15 2004
@@ -7,6 +7,7 @@
 
   <include package="zope.app" />
 
+  <include file="products.zcml" />
   <role id="zope.Manager" title="Site Manager" />
   <role id="zope.Member" title="Site Member" />
 
@@ -21,7 +22,6 @@
   <grant permission="zope.ManageApplication" role="zope.Manager" />
   <grant permission="zope.ManageBindings"    role="zope.Manager" />
 
-  <include file="products.zcml" />
 
   <!-- Principals -->
 


=== Zope3/products.zcml.in 1.10 => 1.11 ===
--- Zope3/products.zcml.in:1.10	Sun Aug  3 15:08:09 2003
+++ Zope3/products.zcml.in	Wed Jan 14 17:55:15 2004
@@ -2,6 +2,11 @@
 
 <!-- add include directives for products here -->
 
+<!-- The default security policy, including roles
+     stuff.
+  -->
+<include package="zope.products.securitypolicy"/>
+
 <!-- Example:
 <include package="zopeproducts.demo.jobboard" />
 -->


=== Zope3/site.zcml 1.22 => 1.23 ===
--- Zope3/site.zcml:1.22	Sun Dec 14 03:25:32 2003
+++ Zope3/site.zcml	Wed Jan 14 17:55:15 2004
@@ -4,6 +4,7 @@
 
 <include package="zope.app" />
 
+<include file="products.zcml" />
 <configure i18n_domain="zope">
   <role id="zope.Manager" title="Site Manager" />
   <role id="zope.Member" title="Site Member" />
@@ -32,7 +33,6 @@
     permission="zope.workflow.UseProcessInstances" 
     role="zope.Manager" />
 
-<include file="products.zcml" />
 
 <!-- Provide local overrides of standard configurations-->
 




More information about the Zope3-Checkins mailing list