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
795bc247
Commit
795bc247
authored
Apr 20, 2016
by
Maurits van Rees
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed docstrings from some methods to avoid publishing them.
From Products.PloneHotfix20160419.
parent
5b6a9672
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
24 deletions
+26
-24
CHANGES.rst
CHANGES.rst
+3
-0
src/OFS/Application.py
src/OFS/Application.py
+7
-7
src/OFS/SimpleItem.py
src/OFS/SimpleItem.py
+7
-7
src/OFS/Traversable.py
src/OFS/Traversable.py
+9
-10
No files found.
CHANGES.rst
View file @
795bc247
...
...
@@ -11,6 +11,9 @@ http://docs.zope.org/zope2/
Bugs Fixed
++++++++++
- Removed docstrings from some methods to avoid publishing them. From
Products.PloneHotfix20160419. [maurits]
- bobo_traverse of ProductDispatcher did not correctly invalidate cache
when a product was not initializes after first access of the cache. Types
that were added in test-profiles were not useable.
...
...
src/OFS/Application.py
View file @
795bc247
...
...
@@ -174,13 +174,13 @@ class Application(ApplicationDefaultPermissions,
return
self
def
getPhysicalPath
(
self
):
"""
Get the physical path of the object.
Returns a path (an immutable sequence of strings) that can be used to
access this object again later, for example in a copy/paste operation.
getPhysicalRoot() and getPhysicalPath() are designed to operate
together.
"""
#
Get the physical path of the object.
#
#
Returns a path (an immutable sequence of strings) that can be used to
# access this object again later, for example in a copy/paste
# operation. getPhysicalRoot() and getPhysicalPath() are designed to
# operate
together.
#
# We're at the base of the path.
return
(
''
,
)
...
...
src/OFS/SimpleItem.py
View file @
795bc247
...
...
@@ -241,7 +241,7 @@ class Item(Base,
try
:
strv
=
repr
(
error_value
)
# quotes tainted strings
except
:
strv
=
(
'<unprintable %s object>'
%
strv
=
(
'<unprintable %s object>'
%
str
(
type
(
error_value
).
__name__
))
v
=
strv
+
(
(
" (Also, the following error occurred while attempting "
...
...
@@ -406,13 +406,13 @@ class Item_w__name__(Item):
self
.
__name__
=
id
def
getPhysicalPath
(
self
):
"""Get the physical path of the object.
# Get the physical path of the object.
#
# Returns a path (an immutable sequence of strings) that can be used to
# access this object again later, for example in a copy/paste
# operation. getPhysicalRoot() and getPhysicalPath() are designed to
# operate together.
Returns a path (an immutable sequence of strings) that can be used to
access this object again later, for example in a copy/paste operation.
getPhysicalRoot() and getPhysicalPath() are designed to operate
together.
"""
path
=
(
self
.
__name__
,
)
p
=
aq_parent
(
aq_inner
(
self
))
if
p
is
not
None
:
...
...
src/OFS/Traversable.py
View file @
795bc247
...
...
@@ -108,16 +108,15 @@ class Traversable:
security
.
declarePublic
(
'getPhysicalPath'
)
def
getPhysicalPath
(
self
):
"""Get the physical path of the object.
Returns a path (an immutable sequence of strings) that can be used to
access this object again later, for example in a copy/paste operation.
getPhysicalRoot() and getPhysicalPath() are designed to operate
together.
This implementation is optimized to avoid excessive amounts of function
calls while walking up from an object on a deep level.
"""
# Get the physical path of the object.
#
# Returns a path (an immutable sequence of strings) that can be used to
# access this object again later, for example in a copy/paste
# operation. getPhysicalRoot() and getPhysicalPath() are designed to
# operate together.
# This implementation is optimized to avoid excessive amounts of
# function calls while walking up from an object on a deep level.
try
:
id
=
self
.
id
or
self
.
getId
()
except
AttributeError
:
...
...
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