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
0a28612a
Commit
0a28612a
authored
Aug 01, 2011
by
Nikolay Kim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert changes
parent
b5633ae4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
12 deletions
+6
-12
src/OFS/ObjectManager.py
src/OFS/ObjectManager.py
+2
-2
src/Products/PageTemplates/Expressions.py
src/Products/PageTemplates/Expressions.py
+1
-1
src/ZPublisher/HTTPRequest.py
src/ZPublisher/HTTPRequest.py
+3
-9
No files found.
src/OFS/ObjectManager.py
View file @
0a28612a
...
...
@@ -425,7 +425,7 @@ class ObjectManager(CopyContainer,
# Returns a list of actual subobjects of the current object.
# If 'spec' is specified, returns only objects whose meta_type
# match 'spec'.
return
[
getattr
(
self
,
id
)
for
id
in
self
.
objectIds
(
spec
)
]
return
[
self
.
_getOb
(
id
)
for
id
in
self
.
objectIds
(
spec
)
]
security
.
declareProtected
(
access_contents_information
,
'objectItems'
)
def
objectItems
(
self
,
spec
=
None
):
...
...
@@ -763,7 +763,7 @@ class ObjectManager(CopyContainer,
return
self
.
manage_delObjects
(
ids
=
[
name
])
def
__getitem__
(
self
,
key
):
v
=
getattr
(
self
,
key
,
None
)
v
=
self
.
_getOb
(
key
,
None
)
if
v
is
not
None
:
return
v
if
hasattr
(
self
,
'REQUEST'
):
request
=
self
.
REQUEST
...
...
src/Products/PageTemplates/Expressions.py
View file @
0a28612a
...
...
@@ -71,7 +71,7 @@ def boboAwareZopeTraverse(object, path_items, econtext):
while
path_items
:
name
=
path_items
.
pop
()
if
OFS
.
interfaces
.
ITraversable
.
providedBy
(
object
):
object
=
object
.
unrestrictedTraverse
(
name
,
restricted
=
Tru
e
)
object
=
object
.
restrictedTraverse
(
nam
e
)
else
:
object
=
traversePathElement
(
object
,
name
,
path_items
,
request
=
request
)
...
...
src/ZPublisher/HTTPRequest.py
View file @
0a28612a
...
...
@@ -169,9 +169,6 @@ class HTTPRequest(BaseRequest):
retry_max_count
=
3
def
__conform__
(
self
,
iface
):
return
iface
.
__adapt__
(
self
)
def
supports_retry
(
self
):
if
self
.
retry_count
<
self
.
retry_max_count
:
time
.
sleep
(
random
.
uniform
(
0
,
2
**
(
self
.
retry_count
)))
...
...
@@ -257,11 +254,11 @@ class HTTPRequest(BaseRequest):
def
physicalPathToURL
(
self
,
path
,
relative
=
0
):
""" Convert a physical path into a URL in the current context """
path
=
self
.
_script
+
[
quote
(
s
)
for
s
in
self
.
physicalPathToVirtualPath
(
path
)]
path
=
self
.
_script
+
map
(
quote
,
self
.
physicalPathToVirtualPath
(
path
))
if
relative
:
path
.
insert
(
0
,
''
)
else
:
path
.
insert
(
0
,
self
.
other
[
'SERVER_URL'
])
path
.
insert
(
0
,
self
[
'SERVER_URL'
])
return
'/'
.
join
(
path
)
def
physicalPathFromURL
(
self
,
URL
):
...
...
@@ -453,9 +450,6 @@ class HTTPRequest(BaseRequest):
self
.
cookies
=
cookies
self
.
taintedcookies
=
taintedcookies
def
__nonzero__
(
self
):
return
True
def
processInputs
(
self
,
# "static" variables that we want to be local for speed
...
...
@@ -1296,7 +1290,7 @@ class HTTPRequest(BaseRequest):
if
n
:
n
=
n
-
1
if
len
(
path
)
<
n
:
r
eturn
default
r
aise
KeyError
,
key
v
=
self
.
_script
+
path
[:
n
]
else
:
...
...
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