[Checkins] SVN: z3c.securitytool/trunk/src/z3c/securitytool/
Renamed some views to be a little more appropriate
Daniel Blackburn
blackburnd at gmail.com
Sun Feb 3 00:35:59 EST 2008
Log message for revision 83438:
Renamed some views to be a little more appropriate
Changed:
U z3c.securitytool/trunk/src/z3c/securitytool/README.txt
U z3c.securitytool/trunk/src/z3c/securitytool/browser/configure.zcml
U z3c.securitytool/trunk/src/z3c/securitytool/browser/securitytool.css
U z3c.securitytool/trunk/src/z3c/securitytool/browser/viewprincipalmatrix.pt
U z3c.securitytool/trunk/src/z3c/securitytool/site.zcml
-=-
Modified: z3c.securitytool/trunk/src/z3c/securitytool/README.txt
===================================================================
--- z3c.securitytool/trunk/src/z3c/securitytool/README.txt 2008-02-03 05:14:19 UTC (rev 83437)
+++ z3c.securitytool/trunk/src/z3c/securitytool/README.txt 2008-02-03 05:35:58 UTC (rev 83438)
@@ -22,7 +22,7 @@
1. Add the z3c.securitytool to your install_requires in your
setup.py.
2. Add the <include package="z3c.securitytool"/> to your site.zcml
- 3. Append the @@vum.html view to any context to view the permission
+ 3. Append the @@securityMatrix.html view to any context to view the permission
matrix for that context.
@@ -417,22 +417,22 @@
First we will check if the main page is available
- >>> manager.open('http://localhost:8080/@@vum.html')
+ >>> manager.open('http://localhost:8080/@@securityMatrix.html')
Now lets send the filter variable so our test is complete
- >>> manager.open('http://localhost:8080/@@vum.html?'
+ >>> manager.open('http://localhost:8080/@@securityMatrix.html?'
... 'FILTER=None&selectedSkin=ConcordTimes')
And with the selected permission
- >>> manager.open('http://localhost:8080/@@vum.html?'
+ >>> manager.open('http://localhost:8080/@@securityMatrix.html?'
... 'FILTER=None&selectedSkin=ConcordTimes&'
... 'selectedPermission=zope.Public')
Here we send an invalid selectedPermisson ( just for coverage ) ;)
- >>> manager.open('http://localhost:8080/@@vum.html?'
+ >>> manager.open('http://localhost:8080/@@securityMatrix.html?'
... 'FILTER=None&selectedSkin=ConcordTimes&'
... 'selectedPermission=zope.dummy')
@@ -452,18 +452,18 @@
Here is the view you will see if you click on the actual permission
value in the matrix intersecting the view to the user on a public view.
- >>> manager.open('http://localhost:8080/@@pd.html?'
+ >>> manager.open('http://localhost:8080/@@permissionDetails.html?'
... 'principal=daniel&view=PUT')
>>> 'zope.Public' in manager.contents
True
Ok lets send the command without the principal:
- >>> manager.open('http://localhost:8080/@@pd.html?view=PUT')
+ >>> manager.open('http://localhost:8080/@@permissionDetails.html?view=PUT')
Traceback (most recent call last):
...
PrincipalLookupError: no user specified
And now we will test it without the view name
- >>> manager.open('http://localhost:8080/@@pd.html?principal=daniel')
+ >>> manager.open('http://localhost:8080/@@permissionDetails.html?principal=daniel')
Modified: z3c.securitytool/trunk/src/z3c/securitytool/browser/configure.zcml
===================================================================
--- z3c.securitytool/trunk/src/z3c/securitytool/browser/configure.zcml 2008-02-03 05:14:19 UTC (rev 83437)
+++ z3c.securitytool/trunk/src/z3c/securitytool/browser/configure.zcml 2008-02-03 05:35:58 UTC (rev 83438)
@@ -3,7 +3,7 @@
xmlns:z3c="http://namespaces.zope.org/z3c"
>
- <page name="vum.html"
+ <page name="securityMatrix.html"
for="*"
class=".views.ViewPrincipalMatrix"
permission="zope.Public"
@@ -15,7 +15,7 @@
permission="zope.Public"
/>
- <page name="pd.html"
+ <page name="permissionDetails.html"
for="*"
class=".views.PermissionDetails"
permission="zope.Public"
Modified: z3c.securitytool/trunk/src/z3c/securitytool/browser/securitytool.css
===================================================================
--- z3c.securitytool/trunk/src/z3c/securitytool/browser/securitytool.css 2008-02-03 05:14:19 UTC (rev 83437)
+++ z3c.securitytool/trunk/src/z3c/securitytool/browser/securitytool.css 2008-02-03 05:35:58 UTC (rev 83438)
@@ -40,7 +40,6 @@
}
h3 {
- color:grey;
font-weight: bold;
text-decoration: underline;
margin-left: 2em;
Modified: z3c.securitytool/trunk/src/z3c/securitytool/browser/viewprincipalmatrix.pt
===================================================================
--- z3c.securitytool/trunk/src/z3c/securitytool/browser/viewprincipalmatrix.pt 2008-02-03 05:14:19 UTC (rev 83437)
+++ z3c.securitytool/trunk/src/z3c/securitytool/browser/viewprincipalmatrix.pt 2008-02-03 05:35:58 UTC (rev 83438)
@@ -64,7 +64,7 @@
perm python: view.getPermissionSetting(viewItem,principal)">
<a tal:attributes="class perm;
- href string:pd.html?principal=${principal}&view=${enc}"
+ href string:permissionDetails.html?principal=${principal}&view=${enc}"
tal:omit-tag="python: perm =='--'">
<span tal:content="python: perm"
tal:omit-tag="">Allow</span>
Modified: z3c.securitytool/trunk/src/z3c/securitytool/site.zcml
===================================================================
--- z3c.securitytool/trunk/src/z3c/securitytool/site.zcml 2008-02-03 05:14:19 UTC (rev 83437)
+++ z3c.securitytool/trunk/src/z3c/securitytool/site.zcml 2008-02-03 05:35:58 UTC (rev 83438)
@@ -25,7 +25,7 @@
<include package="z3c.securitytool" file="concordTimesPrincipals.zcml"/>
<include package="z3c.securitytool" file="concordTimesDummyViews.zcml"/>
- <browser:defaultView for="*" name="vum.html"/>
+ <browser:defaultView for="*" name="securityMatrix.html"/>
</configure>
More information about the Checkins
mailing list