Commit 58666e1c authored by Romain Courteaud's avatar Romain Courteaud

Move PlanningBox edit code to the field itself.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14913 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 39a89a4b
...@@ -120,13 +120,6 @@ def editListBox(listbox_field, listbox):\n ...@@ -120,13 +120,6 @@ def editListBox(listbox_field, listbox):\n
v.update(gv)\n v.update(gv)\n
context.restrictedTraverse(url).edit(**v)\n context.restrictedTraverse(url).edit(**v)\n
\n \n
def editPlanningBox(planning_box):\n
""" Function called to edit a planning box\n
"""\n
if planning_box is not None:\n
for url, v in planning_box.items():\n
context.restrictedTraverse(url).edit(**v)\n
\n
def editMatrixBox(matrixbox_field, matrixbox):\n def editMatrixBox(matrixbox_field, matrixbox):\n
""" Function called to edit a Matrix box\n """ Function called to edit a Matrix box\n
"""\n """\n
...@@ -236,8 +229,6 @@ try:\n ...@@ -236,8 +229,6 @@ try:\n
editListBox(field, request.get(field.id))\n editListBox(field, request.get(field.id))\n
elif(field.meta_type == \'MatrixBox\'):\n elif(field.meta_type == \'MatrixBox\'):\n
editMatrixBox(field, request.get(field.id))\n editMatrixBox(field, request.get(field.id))\n
elif(field.meta_type == \'PlanningBox\'):\n
editPlanningBox(request.get(field.id))\n
\n \n
# Maybe we should build a list of objects we need\n # Maybe we should build a list of objects we need\n
# Update basic attributes\n # Update basic attributes\n
...@@ -340,7 +331,6 @@ return request[\'RESPONSE\'].redirect(redirect_url)\n ...@@ -340,7 +331,6 @@ return request[\'RESPONSE\'].redirect(redirect_url)\n
<string>value</string> <string>value</string>
<string>callable</string> <string>callable</string>
<string>editListBox</string> <string>editListBox</string>
<string>editPlanningBox</string>
<string>editMatrixBox</string> <string>editMatrixBox</string>
<string>MARKER</string> <string>MARKER</string>
<string>kw</string> <string>kw</string>
......
352 353
\ No newline at end of file \ 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