Commit bff4fd3e authored by Jérome Perrin's avatar Jérome Perrin

(romain)

modify Base_edit to call field_editor after saving the matrixbox.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5375 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 822ef930
...@@ -91,6 +91,7 @@ try:\n ...@@ -91,6 +91,7 @@ try:\n
form.validate_all_to_request(request)\n form.validate_all_to_request(request)\n
# Basic attributes\n # Basic attributes\n
kw = {}\n kw = {}\n
encapsulated_editor_list = []\n
# Parse attributes\n # Parse attributes\n
for f in form.get_fields():\n for f in form.get_fields():\n
k = f.id\n k = f.id\n
...@@ -98,7 +99,8 @@ try:\n ...@@ -98,7 +99,8 @@ try:\n
if hasattr(v, \'edit\'):\n if hasattr(v, \'edit\'):\n
# This is an encapsulated editor\n # This is an encapsulated editor\n
# call it\n # call it\n
v.edit(context)\n encapsulated_editor_list.append(v)\n
# v.edit(context)\n
pass\n pass\n
elif v is not MARKER:\n elif v is not MARKER:\n
if k[0:3] == \'my_\':\n if k[0:3] == \'my_\':\n
...@@ -245,6 +247,8 @@ try:\n ...@@ -245,6 +247,8 @@ try:\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
for encapsulated_editor in encapsulated_editor_list:\n
encapsulated_editor.edit(context)\n
context.edit(REQUEST=request,**kw)\n context.edit(REQUEST=request,**kw)\n
\n \n
except FormValidationError, validation_errors:\n except FormValidationError, validation_errors:\n
...@@ -343,6 +347,7 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n ...@@ -343,6 +347,7 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n
<string>getattr</string> <string>getattr</string>
<string>form</string> <string>form</string>
<string>kw</string> <string>kw</string>
<string>encapsulated_editor_list</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>f</string> <string>f</string>
<string>k</string> <string>k</string>
...@@ -383,6 +388,7 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n ...@@ -383,6 +388,7 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n
<string>url</string> <string>url</string>
<string>o</string> <string>o</string>
<string>planning_box_field</string> <string>planning_box_field</string>
<string>encapsulated_editor</string>
<string>validation_errors</string> <string>validation_errors</string>
<string>field_errors</string> <string>field_errors</string>
<string>field_id</string> <string>field_id</string>
......
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