<?xml version="1.0"?>
<ZopeData>
  <record id="1" aka="AAAAAAAAAAE=">
    <pickle>
      <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
    </pickle>
    <pickle>
      <dictionary>
        <item>
            <key> <string>Script_magic</string> </key>
            <value> <int>3</int> </value>
        </item>
        <item>
            <key> <string>_bind_names</string> </key>
            <value>
              <object>
                <klass>
                  <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
                </klass>
                <tuple/>
                <state>
                  <dictionary>
                    <item>
                        <key> <string>_asgns</string> </key>
                        <value>
                          <dictionary>
                            <item>
                                <key> <string>name_container</string> </key>
                                <value> <string>container</string> </value>
                            </item>
                            <item>
                                <key> <string>name_context</string> </key>
                                <value> <string>context</string> </value>
                            </item>
                            <item>
                                <key> <string>name_m_self</string> </key>
                                <value> <string>script</string> </value>
                            </item>
                            <item>
                                <key> <string>name_subpath</string> </key>
                                <value> <string>traverse_subpath</string> </value>
                            </item>
                          </dictionary>
                        </value>
                    </item>
                  </dictionary>
                </state>
              </object>
            </value>
        </item>
        <item>
            <key> <string>_body</string> </key>
            <value> <string>from Products.Formulator.Errors import ValidationError, FormValidationError\n
form = getattr(context,form_id)\n
person = context.ERP5Site_getAuthenticatedMemberPersonValue()\n
\n
# Call Base_edit\n
result, result_type = person.Base_edit(form_id, silent_mode=1, field_prefix=\'your_\')\n
\n
# Return if not appropriate\n
if result_type != \'edit\':\n
  return result\n
\n
kw, encapsulated_editor_list = result\n
\n
# Update basic attributes\n
person.edit(REQUEST=context.REQUEST, edit_order=form.edit_order, **kw)\n
for encapsulated_editor in encapsulated_editor_list:\n
  encapsulated_editor.edit(person)\n
\n
#Redirect the user\n
message = context.Base_translateString("Your personnal information has been updated")\n
context.Base_redirect(form_id,keep_items={\'portal_status_message\':message})\n
</string> </value>
        </item>
        <item>
            <key> <string>_params</string> </key>
            <value> <string>form_id</string> </value>
        </item>
        <item>
            <key> <string>id</string> </key>
            <value> <string>WebSection_updateUserPersonalInformation</string> </value>
        </item>
      </dictionary>
    </pickle>
  </record>
</ZopeData>
