Commit bfb8714a authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use getParentValue() instead of getParent().

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26235 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cadf9dab
......@@ -77,7 +77,7 @@ if not context.portal_membership.isAnonymousUser():\n
else:\n
new_user_layout.append(item)\n
# parent is part of layout element\n
knowledge_pad = context.restrictedTraverse(box_url).getParent()\n
knowledge_pad = context.restrictedTraverse(box_url).getParentValue()\n
# join columns \n
new_user_layout = \'##\'.join(new_user_layout)\n
# update only if necessary\n
......
......@@ -56,7 +56,7 @@
<value> <string encoding="cdata"><![CDATA[
knowledge_pad = context.restrictedTraverse(knowledge_pad_url)\n
knowledge_pad_module = knowledge_pad.getParent()\n
knowledge_pad_module = knowledge_pad.getParentValue()\n
\n
# copy/paste\n
cp = knowledge_pad_module.manage_copyObjects(ids=[knowledge_pad.getId()])\n
......
375
\ No newline at end of file
376
\ No newline at end of file
......@@ -70,7 +70,7 @@ def getWorkLineList(line,worker):\n
return result\n
\n
listbox = []\n
worker_list = context.getParent().getSourceValueList()\n
worker_list = context.getParentValue().getSourceValueList()\n
work_line_list = []\n
for worker in worker_list:\n
work_line_list.extend(getWorkLineList(context,worker))\n
......
628
\ No newline at end of file
629
\ No newline at end of file
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