Commit 80d18ac4 authored by Rafael Monnerat's avatar Rafael Monnerat

Improve messages used for log.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42312 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4479f695
...@@ -65,83 +65,19 @@ for prop in site_property_dict:\n ...@@ -65,83 +65,19 @@ for prop in site_property_dict:\n
if is_upgrade_required:\n if is_upgrade_required:\n
for prop in site_property_dict:\n for prop in site_property_dict:\n
portal.ERP5Site_editERP5SiteProperty(prop, site_property_dict[prop])\n portal.ERP5Site_editERP5SiteProperty(prop, site_property_dict[prop])\n
message_list.append("Upgrade Executed for Global Properties.")\n message_list.append("Upgrade Executed for Global Properties (%s)." % prop)\n
\n \n
return message_list\n return message_list\n
</string> </value> </string> </value>
</item> </item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>upgrade=0</string> </value> <value> <string>upgrade=0</string> </value>
</item> </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>upgrade</string>
<string>_getattr_</string>
<string>context</string>
<string>portal</string>
<string>message_list</string>
<string>is_upgrade_required</string>
<string>site_property_dict</string>
<string>_getiter_</string>
<string>prop</string>
<string>_getitem_</string>
<string>getattr</string>
<string>None</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<int>0</int>
</tuple>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>ERP5Site_upgradeGlobalPropertyList</string> </value> <value> <string>ERP5Site_upgradeGlobalPropertyList</string> </value>
</item> </item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
......
...@@ -66,87 +66,24 @@ for expected_property_sheet, portal_type_id_list in portal_type_property_sheet_l ...@@ -66,87 +66,24 @@ for expected_property_sheet, portal_type_id_list in portal_type_property_sheet_l
for pt in portal_type_list:\n for pt in portal_type_list:\n
property_sheet_list = pt.getTypePropertySheetList()\n property_sheet_list = pt.getTypePropertySheetList()\n
if expected_property_sheet not in pt.getTypePropertySheetList():\n if expected_property_sheet not in pt.getTypePropertySheetList():\n
message_list.append("%s doesn\'t has %s associated." % (pt.getId(), expected_property_sheet))\n
if upgrade:\n if upgrade:\n
property_sheet_list.append(expected_property_sheet)\n property_sheet_list.append(expected_property_sheet)\n
pt.setTypePropertySheet(property_sheet_list)\n pt.setTypePropertySheet(property_sheet_list)\n
message_list.append("Associate PropertySheet %s into Portal Type %s." % (expected_property_sheet,pt.getId()))\n message_list.append("Associate PropertySheet %s into Portal Type %s." % (expected_property_sheet,pt.getId()))\n
else:\n
message_list.append("%s doesn\'t has %s associated." % (pt.getId(), expected_property_sheet))\n
\n \n
return message_list\n return message_list\n
</string> </value> </string> </value>
</item> </item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>upgrade=0</string> </value> <value> <string>upgrade=0</string> </value>
</item> </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>upgrade</string>
<string>message_list</string>
<string>_getattr_</string>
<string>context</string>
<string>portal_type_property_sheet_list</string>
<string>_getiter_</string>
<string>expected_property_sheet</string>
<string>portal_type_id_list</string>
<string>portal_type_list</string>
<string>portal_type_to_fix</string>
<string>pt</string>
<string>property_sheet_list</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<int>0</int>
</tuple>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>ERP5Site_upgradePortalTypePropertySheet</string> </value> <value> <string>ERP5Site_upgradePortalTypePropertySheet</string> </value>
</item> </item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
......
551 554
\ No newline at end of file \ No newline at end of file
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