<?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 encoding="cdata"><![CDATA[

portal = context.getPortalObject()\n
person = portal.ERP5Site_getAuthenticatedMemberPersonValue()\n
\n
if person is None:\n
  url = context.REQUEST.other["URL"]\n
  # Keep informations passed as query string and escape & with url code\n
  query_string = context.REQUEST.environ["QUERY_STRING"].replace("&","%26")\n
  # Redirect directly to browserid\n
  #context.REQUEST.RESPONSE.setCookie("redirect_after_login", context.REQUEST.form[\'callback_url\'], path="/")\n
  return context.getWebSectionValue().Base_redirect("login_form?came_from=%s?%s" % (url,query_string))\n
else:\n
  info_dict = context.REQUEST.form\n
  software_type = info_dict.get("software_type")\n
  software_release = info_dict.get("software_release")\n
  parameter_hash = info_dict.get("parameter_hash")\n
  force_old = info_dict.get("force_old", None)\n
\n
  if software_release.startswith("product."):\n
    software_release_list = context.SoftwareProduct_getSortedSoftwareReleaseList(software_product_reference=software_release[8:])\n
  elif force_old:\n
    software_release_list = [software_release]\n
  else:\n
    software_release_list = context.SoftwareProduct_getSortedSoftwareReleaseList(software_release_url=software_release)\n
\n
  if len(software_release_list):\n
    software_release_document = software_release_list[0]\n
\n
    message = context.Base_translateString("Define your initial Paramaters, and get your instances.")\n
    keep_item_dict = {"portal_status_message":  message,\n
        "software_type": software_type }\n
\n
    if parameter_hash:\n
      keep_item_dict["parameter_hash"] = parameter_hash\n
  \n
    return software_release_document.Base_redirect(\n
      "SoftwareRelease_viewRequestDialog", keep_items=keep_item_dict)\n
\n
raise ValueError("Unable to find the Software Release")\n


]]></string> </value>
        </item>
        <item>
            <key> <string>_params</string> </key>
            <value> <string></string> </value>
        </item>
        <item>
            <key> <string>id</string> </key>
            <value> <string>WebSection_intentRequest</string> </value>
        </item>
      </dictionary>
    </pickle>
  </record>
</ZopeData>
