Commit 597c6982 authored by Aurel's avatar Aurel

2005-12-29 aurel

 * reindex trash bins in ERP5Site_reindexAll


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4945 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a86436c4
...@@ -91,6 +91,12 @@ context.portal_templates.reindexObject(tag=\'module\', sql_catalog_id=sql_catalo ...@@ -91,6 +91,12 @@ context.portal_templates.reindexObject(tag=\'module\', sql_catalog_id=sql_catalo
for o in list(context.portal_templates.objectValues()):\n for o in list(context.portal_templates.objectValues()):\n
o.reindexObject(after_tag=(\'module\',\'category\'),tag=\'document\',priority=2, sql_catalog_id=sql_catalog_id, passive_commit=passive_commit)\n o.reindexObject(after_tag=(\'module\',\'category\'),tag=\'document\',priority=2, sql_catalog_id=sql_catalog_id, passive_commit=passive_commit)\n
\n \n
# Next we index trash bins\n
print "#### Indexing trash bins ####"\n
context.portal_trash.reindexObject(tag=\'module\', sql_catalog_id=sql_catalog_id, passive_commit=passive_commit)\n
for o in list(context.portal_trash.objectValues()):\n
o.reindexObject(after_tag=(\'module\',\'category\'),tag=\'document\',priority=2, sql_catalog_id=sql_catalog_id, passive_commit=passive_commit)\n
\n
# Next we index applied rules\n # Next we index applied rules\n
print "#### Indexing applied rules ####"\n print "#### Indexing applied rules ####"\n
context.portal_rules.reindexObject(tag=\'module\', sql_catalog_id=sql_catalog_id, passive_commit=passive_commit)\n context.portal_rules.reindexObject(tag=\'module\', sql_catalog_id=sql_catalog_id, passive_commit=passive_commit)\n
...@@ -139,7 +145,7 @@ return printed\n ...@@ -139,7 +145,7 @@ return printed\n
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAwAAAEAAAABzEwAAAGUAAGQBAGQCAIQCAFoBAGQAAFMoAwAAAE5pAQAAAGMCAAAA <value> <string encoding="base64">YwAAAAAAAAAAAwAAAEAAAABzEwAAAGUAAGQBAGQCAIQCAFoBAGQAAFMoAwAAAE5pAQAAA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AAAARVJQNVNpdGVfcmVpbmRleEFsbAEAAABzcgAAABYBEwIQASUBKAAJASkCEAElAS4ACQE1AxAB bWVFcnJvcnMEAAAAcmVwcigMAAAAcw4AAABzcWxfY2F0YWxvZ19pZHMOAAAAcGFzc2l2ZV9jb21t
JQEoAAkBOAMQASUBKAAJATUDEAElASgACQE1AxABJQEoAAkBNQMQASUBKAAJATUDNAAGARcBHwEf aXRzBwAAAF9wcmludF9zBgAAAF9wcmludHMJAAAAX2dldGF0dHJfcwcAAABjb250ZXh0cwkAAABf
AR8ABgEGATgDAwE7AzQABgEcARoBHwEfAAkBSQM6AigCAAAAcwQAAABOb25lcxMAAABFUlA1U2l0 Z2V0aXRlcl9zBAAAAGxpc3RzAQAAAG9zBgAAAGZvbGRlcnMMAAAAUnVudGltZUVycm9ycwQAAABy
ZV9yZWluZGV4QWxsKAIAAABzBAAAAE5vbmVzEwAAAEVSUDVTaXRlX3JlaW5kZXhBbGwoAAAAACgA ZXByKAAAAAAoAAAAAHMPAAAAU2NyaXB0IChQeXRob24pcxMAAABFUlA1U2l0ZV9yZWluZGV4QWxs
AAAAcw8AAABTY3JpcHQgKFB5dGhvbilzCAAAADxtb2R1bGU+AQAAAHMAAAAA</string> </value> AQAAAHN8AAAAFgETAhABJQEoAAkBKQIQASUBLgAJATUDEAElASgACQE4AxABJQEoAAkBNQMQASUB
KAAJATUDEAElASgACQE1AxABJQEoAAkBNQMQASUBKAAJATUDNAAGARcBHwEfAR8ABgEGATgDAwE7
AzQABgEcARoBHwEfAAkBSQM6AigCAAAAcwQAAABOb25lcxMAAABFUlA1U2l0ZV9yZWluZGV4QWxs
KAIAAABzBAAAAE5vbmVzEwAAAEVSUDVTaXRlX3JlaW5kZXhBbGwoAAAAACgAAAAAcw8AAABTY3Jp
cHQgKFB5dGhvbilzCAAAADxtb2R1bGU+AQAAAHMAAAAA</string> </value>
</item> </item>
<item> <item>
<key> <string>_filepath</string> </key> <key> <string>_filepath</string> </key>
......
2005-12-29 aurel
* reindex trash bins in ERP5Site_reindexAll
2005-12-29 jerome 2005-12-29 jerome
* update Resource_zGetInventory(List) to take into account changes in the stock table. * update Resource_zGetInventory(List) to take into account changes in the stock table.
* bug fix: Organisation default currency is "price_currency". updated Organisation_viewDetails. * bug fix: Organisation default currency is "price_currency". updated Organisation_viewDetails.
......
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