<?xml version="1.0"?>
<ZopeData>
  <record id="1" aka="AAAAAAAAAAE=">
    <pickle>
      <tuple>
        <tuple>
          <string>Products.PythonScripts.PythonScript</string>
          <string>PythonScript</string>
        </tuple>
        <none/>
      </tuple>
    </pickle>
    <pickle>
      <dictionary>
        <item>
            <key> <string>Python_magic</string> </key>
            <value> <string encoding="base64">O/INCg==</string> </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>request = context.REQUEST\n
from Products.ERP5Type.Document import newTempBase\n
from Products.ERP5Type.Document import newTempMappedValue\n
\n
result = []\n
i = 1\n
portal_object = context.getPortalObject()\n
# Get history\n
# XXX Compatibility\n
for history_name in [\'history\', \'building_history\', \'installation_history\']:\n
  workflow_item_list = context.portal_workflow.getInfoFor(ob=context, \n
                                          name=\'history\', wf_id=workflow_id)\n
  if workflow_item_list != []:\n
    break\n
for workflow_item in workflow_item_list:\n
  # XXX removing str method generate a strange bug\n
  o = newTempBase(portal_object, str(i))\n
  i += 1\n
  for key, value in workflow_item.items():\n
    # XXX Compatibility\n
    for compatibility_name in [\'building_\', \'installation_\']:\n
      if key.startswith(compatibility_name):\n
        # Display the workflow state in the state columns\n
        key = key[len(compatibility_name):]\n
    if key.endswith(\'state\'): # FIXME use translated_state_title here, not state id\n
      key = \'state\'\n
    # o.edit(key=value)\n
    o.setProperty(key, value)\n
  result.append(o)\n
\n
return result\n
</string> </value>
        </item>
        <item>
            <key> <string>_code</string> </key>
            <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAABYAAAAUAAAASwAA
AHOvAQAAdAAAdAEAZAEAgwIAfQQAZAIAawMAbAQAfQYAAWQDAGsDAGwFAH0HAAFnAAB9CABkBAB9
CQB0AAB0AQBkBQCDAgCDAAB9CgB4XAB0CQBkBgBkBwBkCABnAwCDAQBEXUUAfQwAdAAAdAAAdAEA
ZAkAgwIAZAoAgwIAZAsAdAEAZAwAZAYAZA0AfAAAgwADfQ0AfA0AZwAAagMAbwUAAVBxXQABcV0A
V3j+AHQJAHwNAIMBAERd8AB9DgB8BgB8CgB0DgB8CQCDAQCDAgB9EAB8CQBkBAA3fQkAeLUAdAkA
dAAAfA4AZA4AgwIAgwAAgwEARF2bAHQJAAKDAQBcAgB9EQB9EgB4TwB0CQBkDwBkEABnAgCDAQBE
XTsAfRMAdAAAfBEAZBEAgwIAfBMAgwEAbx8AAXQTAHwRAHQUAHwTAIMBAGQAAIUCAIMCAH0RAHEX
AQFxFwFXdAAAfBEAZBIAgwIAZBMAgwEAbwoAAWQTAH0RAG4BAAF0AAB8EABkFACDAgB8EQB8EgCD
AgABcfEAV3QAAHwIAGQVAIMCAHwQAIMBAAFxswBXfAgAU2QAAFMoFgAAAE5zBwAAAFJFUVVFU1Qo
AQAAAHMLAAAAbmV3VGVtcEJhc2UoAQAAAHMSAAAAbmV3VGVtcE1hcHBlZFZhbHVlaQEAAABzDwAA
AGdldFBvcnRhbE9iamVjdHMHAAAAaGlzdG9yeXMQAAAAYnVpbGRpbmd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XMFAAAAdmFsdWVzEgAAAGNvbXBhdGliaWxpdHlfbmFtZXMJ
AAAAX2dldGl0ZW1fcwMAAABsZW4oAAAAACgAAAAAcw8AAABTY3JpcHQgKFB5dGhvbilzHwAAAEJh
c2VfZ2V0V29ya2Zsb3dIaXN0b3J5SXRlbUxpc3QBAAAAczQAAAAPAQ0BDQIGAQYBEgMWAAYBJAEJ
AQ0BCQENAAYCFQEKARkAEwITAAkBEwImARMBDQIaARQCKAEAAABzHwAAAEJhc2VfZ2V0V29ya2Zs
b3dIaXN0b3J5SXRlbUxpc3QoAQAAAHMfAAAAQmFzZV9nZXRXb3JrZmxvd0hpc3RvcnlJdGVtTGlz
dCgAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value>
        </item>
        <item>
            <key> <string>_dav_writelocks</string> </key>
            <value>
              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
            </value>
        </item>
        <item>
            <key> <string>_filepath</string> </key>
            <value> <string>Script (Python):/nexedi/portal_skins/erp5_core/Base_getWorkflowHistoryItemList</string> </value>
        </item>
        <item>
            <key> <string>_params</string> </key>
            <value> <string>workflow_id, **kw</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>1</int> </value>
                    </item>
                    <item>
                        <key> <string>co_varnames</string> </key>
                        <value>
                          <tuple>
                            <string>workflow_id</string>
                            <string>kw</string>
                            <string>_getattr_</string>
                            <string>context</string>
                            <string>request</string>
                            <string>Products.ERP5Type.Document</string>
                            <string>newTempBase</string>
                            <string>newTempMappedValue</string>
                            <string>result</string>
                            <string>i</string>
                            <string>portal_object</string>
                            <string>_getiter_</string>
                            <string>history_name</string>
                            <string>workflow_item_list</string>
                            <string>workflow_item</string>
                            <string>str</string>
                            <string>o</string>
                            <string>key</string>
                            <string>value</string>
                            <string>compatibility_name</string>
                            <string>_getitem_</string>
                            <string>len</string>
                          </tuple>
                        </value>
                    </item>
                  </dictionary>
                </state>
              </object>
            </value>
        </item>
        <item>
            <key> <string>func_defaults</string> </key>
            <value>
              <none/>
            </value>
        </item>
        <item>
            <key> <string>id</string> </key>
            <value> <string>Base_getWorkflowHistoryItemList</string> </value>
        </item>
        <item>
            <key> <string>warnings</string> </key>
            <value>
              <tuple/>
            </value>
        </item>
      </dictionary>
    </pickle>
  </record>
  <record id="2" aka="AAAAAAAAAAI=">
    <pickle>
      <tuple>
        <tuple>
          <string>Persistence</string>
          <string>PersistentMapping</string>
        </tuple>
        <none/>
      </tuple>
    </pickle>
    <pickle>
      <dictionary>
        <item>
            <key> <string>_container</string> </key>
            <value>
              <dictionary/>
            </value>
        </item>
      </dictionary>
    </pickle>
  </record>
</ZopeData>
