<?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>print "#### Indexing translations ####"\n
context.ERP5Site_updateTranslationTable()\n
\n
print "#### Indexing categories ####"\n
context.portal_categories.reindexObject(tag=\'module\')\n
for o in list(context.portal_categories.objectValues()):\n
  o.recursiveReindexObject(after_tag=\'module\',tag=\'category\')\n
\n
print "#### Indexing preferences ####"\n
context.portal_preferences.reindexObject(tag=\'module\')\n
for o in list(context.portal_preferences.objectValues(tag=\'module\')):\n
  o.recursiveReindexObject(after_tag=(\'module\',\'category\'),tag=\'document\',priority=2)\n
\n
# We index simulation first to make sure we can calculate tests (ie. related quantity)\n
print "#### Indexing simulation ####"\n
context.portal_simulation.reindexObject(tag=\'module\')\n
for o in list(context.portal_simulation.objectValues()):\n
  o.recursiveReindexObject(after_tag=(\'module\',\'category\',\'document\'),tag=\'simulation\',priority=3)\n
\n
# We index templates secondly\n
print "#### Indexing templates ####"\n
context.portal_templates.reindexObject(tag=\'module\')\n
for o in list(context.portal_templates.objectValues()):\n
  o.reindexObject(after_tag=(\'module\',\'category\'),tag=\'document\',priority=2)\n
\n
# Next we index applied rules\n
print "#### Indexing applied rules ####"\n
context.portal_rules.reindexObject(tag=\'module\')\n
for o in list(context.portal_rules.objectValues()):\n
  o.recursiveReindexObject(after_tag=(\'module\',\'category\'),tag=\'document\',priority=2)\n
\n
# Next we index delivery builders\n
print "#### Indexing delivery builders ####"\n
context.portal_deliveries.reindexObject(tag=\'module\')\n
for o in list(context.portal_deliveries.objectValues()):\n
  o.reindexObject(after_tag=(\'module\',\'category\'),tag=\'document\',priority=2)\n
\n
# Next we index order builders\n
print "#### Indexing order builders ####"\n
context.portal_orders.reindexObject(tag=\'module\')\n
for o in list(context.portal_orders.objectValues()):\n
  o.reindexObject(after_tag=(\'module\',\'category\'),tag=\'document\',priority=2)\n
\n
# Then we index everything except inventories\n
for folder in context.portal_url.getPortalObject().objectValues(("ERP5 Folder",)):\n
  print "#### Indexing contents inside folder %s ####" % folder.id\n
  if folder.getId() not in (\'inventory_module\',):\n
    folder.reindexObject(tag=\'module\')\n
    for o in list(folder.objectValues()):\n
      try:\n
        o.recursiveReindexObject(after_tag=(\'module\',\'category\'),tag=\'document\',priority=2)\n
      except:\n
        #raise RuntimeError, o.getRelativeUrl()\n
        raise\n
        raise RuntimeError, \'error: folder=%s, o=%s\'  % (repr(folder.getId()), repr(o))\n
\n
# Then we index inventories\n
for folder in context.portal_url.getPortalObject().objectValues(("ERP5 Folder",)):\n
  if folder.getId() in (\'inventory_module\',):\n
    print "#### Indexing contents inside folder %s ####" % folder.id\n
    folder.reindexObject(tag=\'module\')\n
    for o in list(folder.objectValues()):\n
      o.recursiveReindexObject(after_tag=(\'module\',\'document\',\'category\'),tag=\'inventory\',priority=2)\n
\n
# start activty from simulation because the erp5site is not an active object\n
context.portal_simulation.activate(after_tag=(\'inventory\',\'simulation\'),priority=3).InventoryModule_reindexMovementList()\n
\n
return printed\n
</string> </value>
        </item>
        <item>
            <key> <string>_code</string> </key>
            <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAAAAAAoAAABfAAAAQwAA
AHPuBQAAdAAAgwAAfQEAfAEABGQBAAJJSnQCAHQDAGQCAIMCAIMAAAF8AQAEZAMAAklKdAIAdAIA
dAMAZAQAgwIAZAUAgwIAZAYAZAcAgwABAXhLAHQEAHQFAHQCAHQCAHQDAGQEAIMCAGQIAIMCAIMA
AIMBAIMBAERdIgB9BgB0AgB8BgBkCQCDAgBkCgBkBwBkBgBkCwCDAAIBcXQAV3wBAARkDAACSUp0
AgB0AgB0AwBkDQCDAgBkBQCDAgBkBgBkBwCDAAEBeF0AdAQAdAUAdAIAdAIAdAMAZA0AgwIAZAgA
gwIAZAYAZAcAgwABgwEAgwEARF0uAH0GAHQCAHwGAGQJAIMCAGQKAGQHAGQLAGYCAGQGAGQOAGQP
AGQQAIMAAwFx8QBXfAEABGQRAAJJSnQCAHQCAHQDAGQSAIMCAGQFAIMCAGQGAGQHAIMAAQF4WgB0
BAB0BQB0AgB0AgB0AwBkEgCDAgBkCACDAgCDAACDAQCDAQBEXTEAfQYAdAIAfAYAZAkAgwIAZAoA
ZAcAZAsAZA4AZgMAZAYAZBMAZA8AZBQAgwADAXF0AVd8AQAEZBUAAklKdAIAdAIAdAMAZBYAgwIA
ZAUAgwIAZAYAZAcAgwABAXhXAHQEAHQFAHQCAHQCAHQDAGQWAIMCAGQIAIMCAIMAAIMBAIMBAERd
LgB9BgB0AgB8BgBkBQCDAgBkCgBkBwBkCwBmAgBkBgBkDgBkDwBkEACDAAMBcfoBV3wBAARkFwAC
SUp0AgB0AgB0AwBkG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</value>
        </item>
        <item>
            <key> <string>_filepath</string> </key>
            <value> <string>Script (Python):/nexedi/portal_skins/local_erp5/ERP5Site_reindexAll</string> </value>
        </item>
        <item>
            <key> <string>_params</string> </key>
            <value> <string></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>0</int> </value>
                    </item>
                    <item>
                        <key> <string>co_varnames</string> </key>
                        <value>
                          <tuple>
                            <string>_print_</string>
                            <string>_print</string>
                            <string>_getattr_</string>
                            <string>context</string>
                            <string>_getiter_</string>
                            <string>list</string>
                            <string>o</string>
                            <string>folder</string>
                            <string>RuntimeError</string>
                            <string>repr</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>ERP5Site_reindexAll</string> </value>
        </item>
        <item>
            <key> <string>warnings</string> </key>
            <value>
              <tuple/>
            </value>
        </item>
      </dictionary>
    </pickle>
  </record>
</ZopeData>
