[Checkins] SVN: z3c.securitytool/trunk/ Fixed up README.txt for egg deployment and Adding site.zcml for demo

Daniel Blackburn blackburnd at gmail.com
Sat Jan 26 09:40:40 EST 2008


Log message for revision 83245:
  Fixed up README.txt for egg deployment and Adding site.zcml for demo

Changed:
  U   z3c.securitytool/trunk/CHANGES.txt
  U   z3c.securitytool/trunk/README.txt
  A   z3c.securitytool/trunk/src/z3c/securitytool/site.zcml

-=-
Modified: z3c.securitytool/trunk/CHANGES.txt
===================================================================
--- z3c.securitytool/trunk/CHANGES.txt	2008-01-26 14:39:29 UTC (rev 83244)
+++ z3c.securitytool/trunk/CHANGES.txt	2008-01-26 14:40:40 UTC (rev 83245)
@@ -1,165 +1,14 @@
-r83059 | blackburnd | 2008-01-21 08:54:03 -0500 (Mon, 21 Jan 2008) | 6 lines
+=======
+CHANGES
+=======
 
+Version 1.0.0 (2008-01-26)
+--------------------------
 
-  - Added some more tests for the principal level permissions, groups and
-    roles.
-  - Removed some of the TestBrowser tests as they are no longer needed.
+- Initial release of fully functional z3c.securitytool
+  
 
 
-------------------------------------------------------------------------
-r82930 | blackburnd | 2008-01-16 20:15:54 -0500 (Wed, 16 Jan 2008) | 1 line
 
-Egg changes made to submit to pypi
-------------------------------------------------------------------------
-r82929 | blackburnd | 2008-01-16 19:47:12 -0500 (Wed, 16 Jan 2008) | 5 lines
 
 
-Added a few comments to the README.txt so users can test the system
-without too much of a headache.
-
-
-------------------------------------------------------------------------
-r82928 | blackburnd | 2008-01-16 19:39:44 -0500 (Wed, 16 Jan 2008) | 9 lines
-
-
-  - Changed the layout of the viewprincipalmatrix.pt file
-     - views are now orgainized by permission  instead of 
-       just listed with the permission in italics.
-
-     - change the css to accomidate the new changes
-
-
-
-------------------------------------------------------------------------
-r82896 | blackburnd | 2008-01-15 11:06:08 -0500 (Tue, 15 Jan 2008) | 5 lines
-
-Made some changes to the viewprincipalmatrix.pt to be more user
-freindly
-
-
-
-------------------------------------------------------------------------
-r82412 | blackburnd | 2007-12-23 12:04:17 -0500 (Sun, 23 Dec 2007) | 1 line
-
-updated TODO.txt
-------------------------------------------------------------------------
-r82401 | blackburnd | 2007-12-22 15:52:53 -0500 (Sat, 22 Dec 2007) | 1 line
-
-Security tool is now available at pypi (pre-alpha)... Woo Hoo
-------------------------------------------------------------------------
-r82400 | blackburnd | 2007-12-22 14:20:26 -0500 (Sat, 22 Dec 2007) | 1 line
-
-Adding CHANGES.txt
-------------------------------------------------------------------------
-r82399 | blackburnd | 2007-12-22 13:42:22 -0500 (Sat, 22 Dec 2007) | 1 line
-
-Adding setup.py
-------------------------------------------------------------------------
-r82397 | blackburnd | 2007-12-22 13:07:27 -0500 (Sat, 22 Dec 2007) | 3 lines
-
-Adding buildout.cfg and README.txt to subversion
-
-
-------------------------------------------------------------------------
-r82396 | blackburnd | 2007-12-22 13:00:57 -0500 (Sat, 22 Dec 2007) | 1 line
-
-Adding bootstrap.py
-------------------------------------------------------------------------
-r82395 | blackburnd | 2007-12-22 12:59:56 -0500 (Sat, 22 Dec 2007) | 1 line
-
-Adding LICENSE.txt ZPL 2.1
-------------------------------------------------------------------------
-r82394 | blackburnd | 2007-12-22 12:54:42 -0500 (Sat, 22 Dec 2007) | 1 line
-
-Re-organize svn
-------------------------------------------------------------------------
-r82335 | blackburnd | 2007-12-18 14:02:24 -0500 (Tue, 18 Dec 2007) | 6 lines
-
-Changes made to viewprincipalmatrix.pt to properly send the principal
-variable to the principal view.
-
-Changed the principalinfo view to no-longer show the dictionary data.
-
-
-------------------------------------------------------------------------
-r82200 | blackburnd | 2007-12-08 11:47:07 -0500 (Sat, 08 Dec 2007) | 4 lines
-
-
-Fixed ftesting.zcml to proper order.
-
-
-------------------------------------------------------------------------
-r82189 | blackburnd | 2007-12-07 11:13:51 -0500 (Fri, 07 Dec 2007) | 11 lines
-
-
--  Fixed functional tests to use proper testbrowser.
-
--  Removed principals and roles from ftesting.zcml. all users from tests
-   are now provided in the README.txt
-
--  Removed deprecation warnings in views.py
-
--  These comments are for the previous commit as well. 
-
-
-------------------------------------------------------------------------
-r82188 | blackburnd | 2007-12-07 11:08:23 -0500 (Fri, 07 Dec 2007) | 2 lines
-
-
-
-------------------------------------------------------------------------
-r82176 | blackburnd | 2007-12-07 09:11:46 -0500 (Fri, 07 Dec 2007) | 9 lines
-
-
-Adding testing.py to svn to use local ftesting.zcml
-
-TODO:
-
-  -  Still need to fix README.txt to test with Browser()
-
-
-
-------------------------------------------------------------------------
-r82170 | blackburnd | 2007-12-06 20:50:47 -0500 (Thu, 06 Dec 2007) | 6 lines
-
-Made tests into a functional test.
-
-Adding ftesting.zcml to set up for functional tests.
-
-
-
-------------------------------------------------------------------------
-r82139 | blackburnd | 2007-12-05 08:46:21 -0500 (Wed, 05 Dec 2007) | 3 lines
-
-Default skin IBrowserRequest was not getting used in some situations .
-
-
-------------------------------------------------------------------------
-r82083 | blackburnd | 2007-12-02 18:29:37 -0500 (Sun, 02 Dec 2007) | 3 lines
-
-Fixed deprecation warnings in code and tests.
-
-
-------------------------------------------------------------------------
-r82082 | blackburnd | 2007-12-02 18:02:38 -0500 (Sun, 02 Dec 2007) | 5 lines
-
-Added copy of zope.securitypolicy.settingsForObject to securitytool.py
-  This was done to remove the sort method. This is just a workaround
-  for now until the proper solution is implemented.
-
-
-------------------------------------------------------------------------
-r82081 | blackburnd | 2007-12-02 17:54:32 -0500 (Sun, 02 Dec 2007) | 3 lines
-
-Removed unused import statement
-
-
-------------------------------------------------------------------------
-r80566 | blackburnd | 2007-10-03 19:42:25 -0400 (Wed, 03 Oct 2007) | 1 line
-
-Refactored the securitytool.py's getPermissionSettingsForAllViews to be a little more readable
-------------------------------------------------------------------------
-r80414 | blackburnd | 2007-09-29 19:39:12 -0400 (Sat, 29 Sep 2007) | 1 line
-
-Adding z3c.securitytool to svn
-------------------------------------------------------------------------

Modified: z3c.securitytool/trunk/README.txt
===================================================================
--- z3c.securitytool/trunk/README.txt	2008-01-26 14:39:29 UTC (rev 83244)
+++ z3c.securitytool/trunk/README.txt	2008-01-26 14:40:40 UTC (rev 83245)
@@ -1,3 +1,30 @@
-The z3c.securitytool is a tool to view all the permissions for any
-view in any context. These permissions are gathered from the roles
-groups and of course directly provided permissions.
+
+=====================================================
+  Zope3 SecurityTool (z3c.securitytool)
+=====================================================
+
+  This package is used as a tool to view all the permissions for any
+  view in any context. These permissions are gathered from the roles
+  groups and of course directly provided permissions.
+
+
+=====================================================
+  Demo Instructions
+=====================================================
+
+  You can run the demo by downloading just the securitytool package
+
+    $ svn co svn://svn.zope.org/repos/main/z3c.securitytool/trunk securitytool
+    $ cd securitytool
+    $ python bootstrap.py
+    $ ./bin/buildout
+    $ ./bin/demo fg
+
+  Then access the demo site using:
+
+    http://localhost:8080/
+
+
+  If  you select the ConcordTimes skin the same permissions will be
+  displayed as the permissions described in README.txt functional 
+  test

Added: z3c.securitytool/trunk/src/z3c/securitytool/site.zcml
===================================================================
--- z3c.securitytool/trunk/src/z3c/securitytool/site.zcml	                        (rev 0)
+++ z3c.securitytool/trunk/src/z3c/securitytool/site.zcml	2008-01-26 14:40:40 UTC (rev 83245)
@@ -0,0 +1,202 @@
+<configure
+      xmlns="http://namespaces.zope.org/zope"
+      xmlns:browser="http://namespaces.zope.org/browser"
+      i18n_domain="zope">
+
+  <include package="zope.app.zcmlfiles" />
+  <include package="zope.app.authentication" />
+  <include package="zope.app.securitypolicy" />
+  <include package="zope.app.session" />
+  <include package="zope.app.twisted" />
+  <include package="z3c.macro" />
+
+
+  <include package="z3c.macro" file="meta.zcml" />
+  <include package="zope.app.securitypolicy" file="meta.zcml" />
+
+  <include package="z3c.securitytool" file="configure.zcml" />
+  <include package="z3c.layer.minimal" />
+
+  <interface
+    interface="z3c.securitytool.browser.IConcordTimesSkin"
+    type="zope.publisher.interfaces.browser.IBrowserSkinType"
+    name="ConcordTimes"
+    />
+
+
+  <securityPolicy
+    component="zope.securitypolicy.zopepolicy.ZopeSecurityPolicy" />
+
+  <role id="zope.Anonymous" title="Everybody" />
+  <role id="zope.Manager" title="Manager" />
+
+  <role id="zope.Janitor" title="Janitor" />
+  <role id="zope.Editor" title="Editor" />
+  <role id="zope.Writer" title="Writer" />
+
+<permission
+    id="concord.CreateArticle"
+    title="View Perm."
+    description="A Permission Used to View Issues"
+    />
+
+<permission
+    id="concord.DeleteArticle"
+    title="Del Article Perm."
+    description="A Permission Used to Delete Articles"
+    />
+
+<permission
+    id="concord.CreateIssue"
+    title="View Perm."
+    description="A Permission Used to Create Issues"
+    />
+
+<permission
+    id="concord.DeleteIssue"
+    title="View Perm."
+    description="A Permission Used to Delete Issues"
+    />
+
+<permission
+    id="concord.ReadIssue"
+    title="View Perm."
+    description="A Permission Used to View Issues"
+    />
+
+<permission
+    id="concord.PublishIssue"
+    title="View Perm."
+    description="A Permission Used to Publish Issues"
+    />
+
+
+
+  <unauthenticatedPrincipal
+    id="zope.anybody"
+    title="Unauthenticated User"
+    />
+
+  <grant
+    role="zope.Anonymous"
+    principal="zope.anybody"
+    />
+
+  <principal
+    id="zope.sample_manager"
+    title="Sample Manager"
+    login="admin"
+    password="admin"
+    />
+
+  <principal
+    id="zope.daniel"
+    title="Daniel "
+    login="daniel"
+    password="123"
+    />
+
+  <principal
+    id="zope.martin"
+    title="Martin"
+    login="martin"
+    password="123"
+    />
+
+  <principal
+    id="zope.randy"
+    title="Randy"
+    login="randy"
+    password="123"
+    />
+
+  <principal
+    id="zope.markus"
+    title="Markus"
+    login="markus"
+    password="123"
+    />
+
+  <principal
+    id="zope.stephan"
+    title="Stephan"
+    login="stephan"
+    password="123"
+    />
+
+
+  <grant
+    role="zope.Manager"
+    principal="zope.sample_manager"
+    />
+
+  <grantAll role="zope.Manager" />
+
+  <grant  role="zope.Janitor"   principal="zope.daniel"  />
+  <grant  role="zope.Janitor"   principal="zope.stephan" />
+
+  <grant  role="zope.Writer"    principal="zope.randy"   />
+  <grant  role="zope.Writer"    principal="zope.martin"  />
+
+  <grant  role="zope.Editor"    principal="zope.markus"  />
+
+
+  <grant permission="concord.CreateIssue"     role="zope.Editor" />
+  <grant permission="concord.DeleteIssue"     role="zope.Editor" />
+  <grant permission="concord.PublishIssue"    role="zope.Editor" />
+
+  <grant permission="concord.CreateArticle"   role="zope.Editor" />
+  <grant permission="concord.CreateArticle"   role="zope.Writer" />
+
+  <grant permission="concord.DeleteArticle"   role="zope.Writer" />
+  <grant permission="concord.DeleteArticle"   role="zope.Editor" />
+
+  <grant permission="concord.ReadIssue"       role="zope.Editor" />
+  <grant permission="concord.ReadIssue"       role="zope.Janitor" />
+  <grant permission="concord.ReadIssue"       role="zope.Writer" />
+
+
+  <browser:page 
+    name="ReadIssue.html"
+    permission="concord.ReadIssue"
+    for="*"
+    template="dummy.pt"
+    layer="z3c.securitytool.browser.IConcordTimesSkin"
+    />
+
+  <browser:page 
+    name="CreateIssue.html"
+    permission="concord.CreateIssue"
+    for="*"
+    template="dummy.pt"
+    layer="z3c.securitytool.browser.IConcordTimesSkin"
+    />
+
+  <browser:page 
+    name="DeleteIssue.html"
+    permission="concord.DeleteIssue"
+    for="*"
+    template="dummy.pt"
+    layer="z3c.securitytool.browser.IConcordTimesSkin"
+    />
+  <browser:page 
+    name="CreateArticle.html"
+    permission="concord.CreateArticle"
+    for="*"
+    template="dummy.pt"
+    layer="z3c.securitytool.browser.IConcordTimesSkin"
+    />
+
+  <browser:page 
+    name="DeleteArticle.html"
+    permission="concord.DeleteArticle"
+    for="*"
+    template="dummy.pt"
+    layer="z3c.securitytool.browser.IConcordTimesSkin"
+    />
+
+</configure>
+
+
+
+



More information about the Checkins mailing list