<?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>portal_types = context.getPortalObject().portal_types\n
def getPortalType(portal_type):\n
  return portal_types.restrictedTraverse(portal_type)\n
\n
# fix Delivery Simulation Rule portal type\n
getPortalType(\'Delivery Simulation Rule\').setTypeAllowedContentTypeList((\n
    \'Category Membership Divergence Tester\', \'DateTime Divergence Tester\',\n
    \'Float Divergence Tester\', \'Net Converted Quantity Divergence Tester\',\n
    \'Specialise Divergence Tester\', \'String Divergence Tester\',\n
    \'Variation Divergence Tester\'\n
))\n
\n
# fix Hosting Subscription\n
getPortalType(\'Hosting Subscription\').setTypeBaseCategoryList((\n
    \'destination_section\'\n
))\n
\n
# fix Item\n
getPortalType(\'Item\').setTypePropertySheetList([ ])\n
getPortalType(\'Item\').setTypeBaseCategoryList([ ])\n
\n
# fix Preference\n
# property sheets have to be removed\n
# fix Preference Tool\n
# property sheets have to be removed\n
\n
# fix Slave Instance\n
getPortalType(\'Slave Instance\').setTypeBaseCategoryList((\n
    \'aggregate\', \'causality\', \'specialise\'\n
))\n
\n
# fix Software Instance\n
getPortalType(\'Software Instance\').setTypeBaseCategoryList((\n
    \'aggregate\', \'causality\', \'specialise\'\n
))\n
\n
# fix Software Product\n
getPortalType(\'Software Product\').setTypePropertySheetList((\n
    \'DefaultImage\', \'SlapOSSoftwareProductConstraint\'\n
))\n
getPortalType(\'Software Product\').setTypeAllowedContentTypeList((\n
    \'Embedded File\', \'Purchase Supply Line\', \'Sale Supply Line\'\n
))\n
\n
# fix Types Tool\n
getPortalType(\'Types Tool\').setTypeAllowedContentTypeList((\n
    \'Base Type\', \'Gadget Type\'\n
))\n
</string> </value>
        </item>
        <item>
            <key> <string>_params</string> </key>
            <value> <string></string> </value>
        </item>
        <item>
            <key> <string>id</string> </key>
            <value> <string>ERP5Site_postUpgradeFixUpPortalTypes</string> </value>
        </item>
      </dictionary>
    </pickle>
  </record>
</ZopeData>
