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
5250ebcf
Commit
5250ebcf
authored
Jun 28, 2011
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prepare Zope2 2.12.19.
parent
d915fa9d
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
79 additions
and
6 deletions
+79
-6
doc/CHANGES.rst
doc/CHANGES.rst
+3
-1
setup.py
setup.py
+1
-1
src/Products/Five/configure.zcml
src/Products/Five/configure.zcml
+3
-0
src/Products/Five/traversing.py
src/Products/Five/traversing.py
+14
-0
src/Products/Five/traversing.zcml
src/Products/Five/traversing.zcml
+57
-3
versions.cfg
versions.cfg
+1
-1
No files found.
doc/CHANGES.rst
View file @
5250ebcf
...
...
@@ -5,12 +5,14 @@ This file contains change information for the current Zope release.
Change information for previous versions of Zope can be found at
http://docs.zope.org/zope2/releases/.
2.12.19 (
unreleased
)
2.12.19 (
2011-06-28
)
--------------------
Bugs Fixed
++++++++++
- Fixed a serious privilege escalation issue. For more information see:
http://plone.org/products/plone/security/advisories/20110622
Features
++++++++
...
...
setup.py
View file @
5250ebcf
...
...
@@ -16,7 +16,7 @@ import os
from
setuptools
import
setup
,
find_packages
,
Extension
setup
(
name
=
'Zope2'
,
version
=
'2.12.19
dev
'
,
version
=
'2.12.19'
,
url
=
'http://www.zope.org'
,
license
=
'ZPL 2.1'
,
description
=
'Zope2 application server / web framework'
,
...
...
src/Products/Five/configure.zcml
View file @
5250ebcf
<configure xmlns="http://namespaces.zope.org/zope"
xmlns:five="http://namespaces.zope.org/five">
<!-- Disable unsupported Zope Toolkit functionality -->
<exclude package="zope.traversing" />
<include file="meta.zcml" />
<include file="permissions.zcml" />
<include file="i18n.zcml" />
...
...
src/Products/Five/traversing.py
0 → 100644
View file @
5250ebcf
from
zExceptions
import
Forbidden
from
zope.interface.interface
import
InterfaceClass
from
zope.traversing
import
namespace
class
resource
(
namespace
.
view
):
def
traverse
(
self
,
name
,
ignored
):
# The context is important here, since it becomes the parent of the
# resource, which is needed to generate the absolute URL.
res
=
namespace
.
getResource
(
self
.
context
,
name
,
self
.
request
)
if
isinstance
(
res
,
InterfaceClass
):
raise
Forbidden
(
'Access to traverser is forbidden.'
)
return
res
src/Products/Five/traversing.zcml
View file @
5250ebcf
<configure xmlns="http://namespaces.zope.org/zope"
xmlns:five="http://namespaces.zope.org/five">
<configure xmlns="http://namespaces.zope.org/zope">
<!-- define default namespace adapters, etc. -->
<include package="zope.traversing" />
<adapter
for="*"
factory="zope.traversing.adapters.Traverser"
provides="zope.location.interfaces.ITraverser" />
<adapter
for="*"
factory="zope.traversing.adapters.DefaultTraversable"
provides="zope.traversing.interfaces.ITraversable" />
<adapter
name="etc"
for="*"
provides="zope.traversing.interfaces.ITraversable"
factory="zope.traversing.namespace.etc"
/>
<adapter
name="etc"
for="* zope.publisher.interfaces.IRequest"
provides="zope.traversing.interfaces.ITraversable"
factory="zope.traversing.namespace.etc"
/>
<adapter
name="adapter"
for="*"
provides="zope.traversing.interfaces.ITraversable"
factory="zope.traversing.namespace.adapter"
/>
<adapter
name="adapter"
for="* zope.publisher.interfaces.IRequest"
provides="zope.traversing.interfaces.ITraversable"
factory="zope.traversing.namespace.adapter"
/>
<adapter
name="skin"
for="* zope.publisher.interfaces.IRequest"
provides="zope.traversing.interfaces.ITraversable"
factory="zope.traversing.namespace.skin"
/>
<adapter
name="resource"
for="* zope.publisher.interfaces.IRequest"
provides="zope.traversing.interfaces.ITraversable"
factory="Products.Five.traversing.resource"
/>
<adapter
name="view"
for="* zope.publisher.interfaces.IRequest"
provides="zope.traversing.interfaces.ITraversable"
factory="zope.traversing.namespace.view"
/>
</configure>
versions.cfg
View file @
5250ebcf
...
...
@@ -2,7 +2,7 @@
versions = versions
[versions]
Zope2 =
Zope2 =
2.12.19
Acquisition = 2.13.8
buildout.dumppickedversions = 0.4
ClientForm = 0.2.10
...
...
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