Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
a35da91b
Commit
a35da91b
authored
Jul 16, 2010
by
David Glick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge the rest of r114289 to Zope2 trunk
parent
4bc9139d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
2 deletions
+20
-2
doc/CHANGES.rst
doc/CHANGES.rst
+6
-0
src/Products/Five/browser/metaconfigure.py
src/Products/Five/browser/metaconfigure.py
+1
-1
src/Products/Five/browser/tests/pages.py
src/Products/Five/browser/tests/pages.py
+6
-0
src/Products/Five/browser/tests/pages.txt
src/Products/Five/browser/tests/pages.txt
+6
-0
src/Products/Five/browser/tests/pages.zcml
src/Products/Five/browser/tests/pages.zcml
+1
-1
No files found.
doc/CHANGES.rst
View file @
a35da91b
...
@@ -11,6 +11,12 @@ http://docs.zope.org/zope2/releases/.
...
@@ -11,6 +11,12 @@ http://docs.zope.org/zope2/releases/.
Bugs Fixed
Bugs Fixed
++++++++++
++++++++++
- Fix support for non-public permission attributes in the
browser:view directive so that attributes which are not included in
allowed_interface or allowed_attributes but which have declarations from a
base class's security info don't get their security overwritten to be
private.
- LP #143755: Also catch TypeError when trying to determine an
- LP #143755: Also catch TypeError when trying to determine an
indexable value for an object in PluginIndexes.common.UnIndex
indexable value for an object in PluginIndexes.common.UnIndex
...
...
src/Products/Five/browser/metaconfigure.py
View file @
a35da91b
...
@@ -314,7 +314,7 @@ class view(zope.browserpage.metaconfigure.view):
...
@@ -314,7 +314,7 @@ class view(zope.browserpage.metaconfigure.view):
_context
.
action
(
_context
.
action
(
discriminator
=
(
'five:protectName'
,
newclass
,
attr
),
discriminator
=
(
'five:protectName'
,
newclass
,
attr
),
callable
=
protectName
,
callable
=
protectName
,
args
=
(
newclass
,
attr
,
CheckerPrivateId
)
args
=
(
newclass
,
attr
,
CheckerPrivateId
,
False
)
)
)
# Protect the class
# Protect the class
...
...
src/Products/Five/browser/tests/pages.py
View file @
a35da91b
...
@@ -17,6 +17,7 @@ $Id$
...
@@ -17,6 +17,7 @@ $Id$
"""
"""
from
Products.Five
import
BrowserView
from
Products.Five
import
BrowserView
from
Products.Five.browser.pagetemplatefile
import
ViewPageTemplateFile
from
Products.Five.browser.pagetemplatefile
import
ViewPageTemplateFile
from
OFS.SimpleItem
import
SimpleItem
class
SimpleView
(
BrowserView
):
class
SimpleView
(
BrowserView
):
"""More docstring. Please Zope"""
"""More docstring. Please Zope"""
...
@@ -40,6 +41,11 @@ class CallView(BrowserView):
...
@@ -40,6 +41,11 @@ class CallView(BrowserView):
def
__call__
(
self
):
def
__call__
(
self
):
return
u"I was __call__()'ed"
return
u"I was __call__()'ed"
class
PermissionView
(
BrowserView
,
SimpleItem
):
def
__call__
(
self
):
return
u"I was __call__()'ed"
class
CallTemplate
(
BrowserView
):
class
CallTemplate
(
BrowserView
):
__call__
=
ViewPageTemplateFile
(
'falcon.pt'
)
__call__
=
ViewPageTemplateFile
(
'falcon.pt'
)
...
...
src/Products/Five/browser/tests/pages.txt
View file @
a35da91b
...
@@ -275,6 +275,12 @@ The same applies to a view registered with <browser:view /> instead of
...
@@ -275,6 +275,12 @@ The same applies to a view registered with <browser:view /> instead of
>>> aq_parent(aq_inner(context))
>>> aq_parent(aq_inner(context))
<Folder at /test_folder_1_>
<Folder at /test_folder_1_>
Make sure that methods which are not included in the allowed interface or
attributes, but which already had security declarations from a base class,
don't get those declarations overridden to be private. (The roles for
restrictedTraverse should be None, indicating it is public.)
>>> view.restrictedTraverse__roles__
Other
Other
-----
-----
...
...
src/Products/Five/browser/tests/pages.zcml
View file @
a35da91b
...
@@ -237,7 +237,7 @@
...
@@ -237,7 +237,7 @@
<browser:view
<browser:view
name="permission_view"
name="permission_view"
for="Products.Five.tests.testing.simplecontent.ISimpleContent"
for="Products.Five.tests.testing.simplecontent.ISimpleContent"
class=".pages.
Call
View"
class=".pages.
Permission
View"
permission="zope2.ViewManagementScreens"
permission="zope2.ViewManagementScreens"
/>
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment