<?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>"""Create a new fiber request.\n
Parameter list:\n
dialog_id -- Id of dialog that call the script"""\n
\n
#Get container module\n
module = context.getPortalObject().free_fiber_request_module\n
\n
#set a good case on namesnames\n
first_name = first_name[0:1].upper() + first_name[1:]\n
last_name = last_name[0:1].upper() + last_name[1:]\n
\n
#Create new object with default values\n
fiber_request = module.newContent(portal_type="Free Fiber Request",\n
                            first_name=first_name,\n
                            last_name=last_name,\n
                            address_city = address_city,\n
                            address_street_address = address_street_address,\n
                            address_zip_code = address_zip_code,\n
                            default_birthplace_address_city = default_birthplace_address_city, \n
                            default_email_text = default_email_text,                   \n
                            internet_service_provider = internet_service_provider,\n
                            start_date = start_date,\n
                            telephone_text = telephone_text,\n
                            language = context.Localizer.get_selected_language()\n
                                  )\n
  \t  \t\n
#Start the request (Send email in good language)\n
fiber_request.start("automaticaly started")\n
\n
\n
#Redirect with custom message\\n\n
portal_status_message = context.Base_translateString("You request has been submit.")\n
return context.Base_redirect("", keep_items=dict(portal_status_message=portal_status_message ))\n
</string> </value>
        </item>
        <item>
            <key> <string>_params</string> </key>
            <value> <string>dialog_id, first_name, last_name, address_city, address_street_address, address_zip_code, default_birthplace_address_city, default_email_text, internet_service_provider, start_date, telephone_text, **kw</string> </value>
        </item>
        <item>
            <key> <string>_proxy_roles</string> </key>
            <value>
              <tuple>
                <string>Author</string>
                <string>Manager</string>
              </tuple>
            </value>
        </item>
        <item>
            <key> <string>id</string> </key>
            <value> <string>WebSection_newFreeFiberRequest</string> </value>
        </item>
      </dictionary>
    </pickle>
  </record>
</ZopeData>
