<?xml version="1.0"?>
<ZopeData>
  <record id="1" aka="AAAAAAAAAAE=">
    <pickle>
      <tuple>
        <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
        <tuple/>
      </tuple>
    </pickle>
    <pickle>
      <dictionary>
        <item>
            <key> <string>Python_magic</string> </key>
            <value>
              <none/>
            </value>
        </item>
        <item>
            <key> <string>Script_magic</string> </key>
            <value> <int>3</int> </value>
        </item>
        <item>
            <key> <string>__ac_local_roles__</string> </key>
            <value>
              <none/>
            </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[

context.Base_updateListboxSelection()\n
\n
portal = context.getPortalObject()\n
N_ = portal.Base_translateString\n
\n
if not action_select : return\n
\n
is_list = int(is_list)\n
\n
Base_doAction = action_select.split()\n
doAction0 = Base_doAction[0]\n
request = context.REQUEST\n
\n
# First, update checked uids if uids is not None.\n
context.portal_selections.updateSelectionCheckedUidList(selection_name, uids=uids, listbox_uid=listbox_uid, REQUEST=request)\n
\n
# If this is an object, a workflow or a folder, then jump to that view\n
if doAction0 in (\'object\', \'workflow\', \'folder\'):\n
  uri = \' \'.join(Base_doAction[1:])\n
  if uri.find(\'?\') >= 0:\n
    uri += \'&\'\n
  else:\n
    uri += \'?\'\n
  uri += \'form_id=%s&selection_index=%s&selection_name=%s\' % (form_id, selection_index, selection_name)\n
  if md5_object_uid_list is not None and is_list == 1:\n
    uri += \'&previous_md5_object_uid_list=%s\' % md5_object_uid_list\n
  if doAction0 == \'object\':\n
    uri += \'&dialog_category=object_action\'\n
  return request.RESPONSE.redirect(uri)\n
# Otherwise, check if this is an automatic menu (add)\n
elif doAction0 == \'add\':\n
  new_id = context.generateNewId()\n
  type_name = \' \'.join(Base_doAction[1:])\n
  new_content = context.newContent(portal_type=type_name,\n
                                   container=context,\n
                                   id=str(new_id))\n
  message = N_("Object+Created.")\n
  if not(ignore_layout) and context.getApplicableLayout():\n
    redirect_url = \'%s/%s?portal_status_message=%s&editable_mode=1\' % (\n
                              new_content.WebSite_getDocumentPhysicalPath()\n
                              , \'view\'\n
                              , message)\n
  else:\n
    redirect_url = \'%s/%s?portal_status_message=%s\' % ( \n
                              new_content.absolute_url()  \n
                              , \'view\'\n
                              , message)\n
  return request.RESPONSE.redirect( redirect_url )\n
# Otherwise, check if this is an automatic menu (template)\n
elif doAction0 == \'template\':\n
  template_relative_url = \' \'.join(Base_doAction[1:])\n
  template = context.getPortalObject().restrictedTraverse(template_relative_url)\n
  if template is not None:\n
    preference = template.getParentValue()\n
    preference.manage_copyObjects(ids=[template.getId()], REQUEST=request, RESPONSE=None)\n
    new_content_list = context.manage_pasteObjects(request[\'__cp\'])\n
    new_content_id = new_content_list[0][\'new_id\']\n
    new_content = context[new_content_id]\n
    new_content.makeTemplateInstance()\n
    redirect_url = \'%s/%s?%s\' % ( new_content.absolute_url()\n
                            , \'view\'\n
                            , \'portal_status_message=Template+Created.\')\n
  else: \n
    message = N_("Template+Does+not+Exist.")\n
    redirect_url = \'%s/%s?portal_status_message=%s\' % ( context.absolute_url()\n
                            , \'view\'\n
                            , message)\n
  return request.RESPONSE.redirect( redirect_url )\n
\n
return getattr(context,form_id)(request)\n


]]></string> </value>
        </item>
        <item>
            <key> <string>_code</string> </key>
            <value>
              <none/>
            </value>
        </item>
        <item>
            <key> <string>_filepath</string> </key>
            <value>
              <none/>
            </value>
        </item>
        <item>
            <key> <string>_params</string> </key>
            <value> <string>action_select=None, form_id=\'\', selection_index=\'\', selection_name=\'\', uids=None, listbox_uid=None, md5_object_uid_list=None, is_list=0, ignore_layout=None</string> </value>
        </item>
        <item>
            <key> <string>errors</string> </key>
            <value>
              <tuple/>
            </value>
        </item>
        <item>
            <key> <string>func_code</string> </key>
            <value>
              <object>
                <klass>
                  <global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
                </klass>
                <tuple/>
                <state>
                  <dictionary>
                    <item>
                        <key> <string>co_argcount</string> </key>
                        <value> <int>9</int> </value>
                    </item>
                    <item>
                        <key> <string>co_varnames</string> </key>
                        <value>
                          <tuple>
                            <string>action_select</string>
                            <string>form_id</string>
                            <string>selection_index</string>
                            <string>selection_name</string>
                            <string>uids</string>
                            <string>listbox_uid</string>
                            <string>md5_object_uid_list</string>
                            <string>is_list</string>
                            <string>ignore_layout</string>
                            <string>_getattr_</string>
                            <string>context</string>
                            <string>portal</string>
                            <string>N_</string>
                            <string>int</string>
                            <string>Base_doAction</string>
                            <string>_getitem_</string>
                            <string>doAction0</string>
                            <string>request</string>
                            <string>uri</string>
                            <string>_inplacevar_</string>
                            <string>None</string>
                            <string>new_id</string>
                            <string>type_name</string>
                            <string>str</string>
                            <string>new_content</string>
                            <string>message</string>
                            <string>redirect_url</string>
                            <string>template_relative_url</string>
                            <string>template</string>
                            <string>preference</string>
                            <string>new_content_list</string>
                            <string>new_content_id</string>
                            <string>getattr</string>
                          </tuple>
                        </value>
                    </item>
                  </dictionary>
                </state>
              </object>
            </value>
        </item>
        <item>
            <key> <string>func_defaults</string> </key>
            <value>
              <tuple>
                <none/>
                <string></string>
                <string></string>
                <string></string>
                <none/>
                <none/>
                <none/>
                <int>0</int>
                <none/>
              </tuple>
            </value>
        </item>
        <item>
            <key> <string>id</string> </key>
            <value> <string>Base_doAction</string> </value>
        </item>
        <item>
            <key> <string>warnings</string> </key>
            <value>
              <tuple/>
            </value>
        </item>
      </dictionary>
    </pickle>
  </record>
</ZopeData>
