Commit 795bc247 authored by Maurits van Rees's avatar Maurits van Rees

Removed docstrings from some methods to avoid publishing them.

From Products.PloneHotfix20160419.
parent 5b6a9672
...@@ -11,6 +11,9 @@ http://docs.zope.org/zope2/ ...@@ -11,6 +11,9 @@ http://docs.zope.org/zope2/
Bugs Fixed Bugs Fixed
++++++++++ ++++++++++
- Removed docstrings from some methods to avoid publishing them. From
Products.PloneHotfix20160419. [maurits]
- bobo_traverse of ProductDispatcher did not correctly invalidate cache - bobo_traverse of ProductDispatcher did not correctly invalidate cache
when a product was not initializes after first access of the cache. Types when a product was not initializes after first access of the cache. Types
that were added in test-profiles were not useable. that were added in test-profiles were not useable.
......
...@@ -174,13 +174,13 @@ class Application(ApplicationDefaultPermissions, ...@@ -174,13 +174,13 @@ class Application(ApplicationDefaultPermissions,
return self return self
def getPhysicalPath(self): 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 # 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. # access this object again later, for example in a copy/paste
getPhysicalRoot() and getPhysicalPath() are designed to operate # operation. getPhysicalRoot() and getPhysicalPath() are designed to
together. # operate together.
""" #
# We're at the base of the path. # We're at the base of the path.
return ('', ) return ('', )
......
...@@ -406,13 +406,13 @@ class Item_w__name__(Item): ...@@ -406,13 +406,13 @@ class Item_w__name__(Item):
self.__name__=id self.__name__=id
def getPhysicalPath(self): 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__, ) path = (self.__name__, )
p = aq_parent(aq_inner(self)) p = aq_parent(aq_inner(self))
if p is not None: if p is not None:
......
...@@ -108,16 +108,15 @@ class Traversable: ...@@ -108,16 +108,15 @@ class Traversable:
security.declarePublic('getPhysicalPath') security.declarePublic('getPhysicalPath')
def getPhysicalPath(self): 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 # 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. # access this object again later, for example in a copy/paste
getPhysicalRoot() and getPhysicalPath() are designed to operate # operation. getPhysicalRoot() and getPhysicalPath() are designed to
together. # operate together.
This implementation is optimized to avoid excessive amounts of function # This implementation is optimized to avoid excessive amounts of
calls while walking up from an object on a deep level. # function calls while walking up from an object on a deep level.
"""
try: try:
id = self.id or self.getId() id = self.id or self.getId()
except AttributeError: except AttributeError:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment