Commit a044d84c authored by Aurel's avatar Aurel

reindexation of ERP5Form is now performed by ERP5Site_reindexAll script

parent 1460c40d
portal = context.getPortalObject()
skin_tool = portal.portal_skins
for skin_folder in portal.portal_skins.objectValues():
for skin_document in skin_folder.objectValues():
if skin_document.meta_type == "ERP5 Form":
# skin_document.setUid(None)
skin_document.reindexObject()
print "skins ok"
return printed
<?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>_params</string> </key>
<value> <string>sql_catalog_id=None, additional_priority=0, final_activity_tag=None</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>ERP5Site_reindexSkinList</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -23,28 +23,6 @@
<td>Reset Successfully.</td>
<td></td>
</tr>
<!-- skin list -->
<tr>
<td>open</td>
<td>${base_url}/portal_skins/erp5_hal_json_style/ERP5Site_reindexSkinList/</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>skins ok</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/Zuite_waitForActivities</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Done.</td>
<td></td>
<td></td>
</tr>
<!-- create sample data -->
<tr>
......@@ -116,4 +94,4 @@
</tbody>
</table>
</body>
</html>
\ No newline at end of file
</html>
......@@ -23,28 +23,6 @@
<td>Reset Successfully.</td>
<td></td>
</tr>
<!-- skin list -->
<tr>
<td>open</td>
<td>${base_url}/portal_skins/erp5_hal_json_style/ERP5Site_reindexSkinList/</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>skins ok</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/Zuite_waitForActivities</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Done.</td>
<td></td>
<td></td>
</tr>
<!-- create sample data -->
<tr>
......@@ -103,4 +81,4 @@
</tbody>
</table>
</body>
</html>
\ No newline at end of file
</html>
......@@ -23,28 +23,6 @@
<td>Reset Successfully.</td>
<td></td>
</tr>
<!-- skin list -->
<tr>
<td>open</td>
<td>${base_url}/portal_skins/erp5_hal_json_style/ERP5Site_reindexSkinList/</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>skins ok</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/Zuite_waitForActivities</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Done.</td>
<td></td>
<td></td>
</tr>
<!-- create sample data -->
<tr>
......@@ -123,4 +101,4 @@
</tbody>
</table>
</body>
</html>
\ No newline at end of file
</html>
......@@ -23,28 +23,6 @@
<td>Reset Successfully.</td>
<td></td>
</tr>
<!-- skin list -->
<tr>
<td>open</td>
<td>${base_url}/portal_skins/erp5_hal_json_style/ERP5Site_reindexSkinList/</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>skins ok</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/Zuite_waitForActivities</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Done.</td>
<td></td>
<td></td>
</tr>
<!-- create sample data -->
<tr>
......@@ -108,4 +86,4 @@
</tbody>
</table>
</body>
</html>
\ No newline at end of file
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment