Commit a784f22b authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

Use Acquisition.aq_parent instead of the attribute aq_parent. This would be...

Use Acquisition.aq_parent instead of the attribute aq_parent. This would be important in the future when we depart from Zope2. Thanks to Yoshinori for the suggestion.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28327 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2da8eba7
......@@ -28,7 +28,7 @@
import transaction
from AccessControl import ClassSecurityInfo
from Acquisition import aq_base, aq_self
from Acquisition import aq_base, aq_self, aq_parent
from OFS.History import Historical
from OFS.Folder import Folder as OFSFolder
import ExtensionClass
......@@ -349,7 +349,7 @@ class FolderMixIn(ExtensionClass.Base):
specified case (eg. web_site_module/site/fr/web_page_module), we
call aq_parent instead to reach the Web Site.
"""
return self.aq_parent.getWebSiteValue()
return aq_parent(self).getWebSiteValue()
security.declareProtected(Permissions.AccessContentsInformation,
'getWebSectionValue')
......@@ -359,7 +359,7 @@ class FolderMixIn(ExtensionClass.Base):
specified case (eg. web_site_module/site/fr/section/web_page_module),
we call aq_parent instead to reach the Web Section.
"""
return self.aq_parent.getWebSectionValue()
return aq_parent(self).getWebSectionValue()
BTREE_HANDLER = 1
HBTREE_HANDLER = 2
......
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