Commit 9e503816 authored by Yoshinori Okuji's avatar Yoshinori Okuji

2005-12-18 yo

* The portal type Preference does not need to specify PropertySheets in the portal type, since they are defined in the product.
* Add skins and actions for repository support.

2005-12-18: j?rome
* i18n : added Base_FormatDate, updated Base_TranslateString to use mapping.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4702 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d9233d32
...@@ -169,6 +169,9 @@ ...@@ -169,6 +169,9 @@
<permission> <permission>
<name>Add Pluggable Index</name> <name>Add Pluggable Index</name>
</permission> </permission>
<permission>
<name>Add Portal ZSyncer Tools</name>
</permission>
<permission> <permission>
<name>Add Python Scripts</name> <name>Add Python Scripts</name>
</permission> </permission>
...@@ -220,6 +223,9 @@ ...@@ -220,6 +223,9 @@
<permission> <permission>
<name>Add ZODB Mount Points</name> <name>Add ZODB Mount Points</name>
</permission> </permission>
<permission>
<name>Add ZSyncers</name>
</permission>
<permission> <permission>
<name>Add Zope Tutorials</name> <name>Add Zope Tutorials</name>
</permission> </permission>
...@@ -529,6 +535,9 @@ ...@@ -529,6 +535,9 @@
<permission> <permission>
<name>WebDAV access</name> <name>WebDAV access</name>
</permission> </permission>
<permission>
<name>ZSyncer: Use ZSyncer</name>
</permission>
<permission> <permission>
<name>ZopeProfiler: manage</name> <name>ZopeProfiler: manage</name>
</permission> </permission>
......
...@@ -239,6 +239,9 @@ ...@@ -239,6 +239,9 @@
<name>Add Pluggable Index</name> <name>Add Pluggable Index</name>
<role>Manager</role> <role>Manager</role>
</permission> </permission>
<permission>
<name>Add Portal ZSyncer Tools</name>
</permission>
<permission> <permission>
<name>Add Python Scripts</name> <name>Add Python Scripts</name>
<role>Manager</role> <role>Manager</role>
...@@ -307,6 +310,9 @@ ...@@ -307,6 +310,9 @@
<name>Add ZODB Mount Points</name> <name>Add ZODB Mount Points</name>
<role>Manager</role> <role>Manager</role>
</permission> </permission>
<permission>
<name>Add ZSyncers</name>
</permission>
<permission> <permission>
<name>Add Zope Tutorials</name> <name>Add Zope Tutorials</name>
<role>Manager</role> <role>Manager</role>
...@@ -745,6 +751,9 @@ ...@@ -745,6 +751,9 @@
<name>WebDAV access</name> <name>WebDAV access</name>
<role>Manager</role> <role>Manager</role>
</permission> </permission>
<permission>
<name>ZSyncer: Use ZSyncer</name>
</permission>
<permission> <permission>
<name>ZopeProfiler: manage</name> <name>ZopeProfiler: manage</name>
</permission> </permission>
......
...@@ -239,6 +239,9 @@ ...@@ -239,6 +239,9 @@
<name>Add Pluggable Index</name> <name>Add Pluggable Index</name>
<role>Manager</role> <role>Manager</role>
</permission> </permission>
<permission>
<name>Add Portal ZSyncer Tools</name>
</permission>
<permission> <permission>
<name>Add Python Scripts</name> <name>Add Python Scripts</name>
<role>Manager</role> <role>Manager</role>
...@@ -307,6 +310,9 @@ ...@@ -307,6 +310,9 @@
<name>Add ZODB Mount Points</name> <name>Add ZODB Mount Points</name>
<role>Manager</role> <role>Manager</role>
</permission> </permission>
<permission>
<name>Add ZSyncers</name>
</permission>
<permission> <permission>
<name>Add Zope Tutorials</name> <name>Add Zope Tutorials</name>
<role>Manager</role> <role>Manager</role>
...@@ -747,6 +753,9 @@ ...@@ -747,6 +753,9 @@
<name>WebDAV access</name> <name>WebDAV access</name>
<role>Manager</role> <role>Manager</role>
</permission> </permission>
<permission>
<name>ZSyncer: Use ZSyncer</name>
</permission>
<permission> <permission>
<name>ZopeProfiler: manage</name> <name>ZopeProfiler: manage</name>
</permission> </permission>
......
...@@ -36,6 +36,10 @@ ...@@ -36,6 +36,10 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>acquire_local_roles</string> </key>
<value> <int>1</int> </value>
</item>
<item> <item>
<key> <string>allowed_content_types</string> </key> <key> <string>allowed_content_types</string> </key>
<value> <value>
...@@ -68,6 +72,12 @@ ...@@ -68,6 +72,12 @@
<key> <string>filter_content_types</string> </key> <key> <string>filter_content_types</string> </key>
<value> <int>1</int> </value> <value> <int>1</int> </value>
</item> </item>
<item>
<key> <string>group_list</string> </key>
<value>
<tuple/>
</value>
</item>
<item> <item>
<key> <string>hidden_content_type_list</string> </key> <key> <string>hidden_content_type_list</string> </key>
<value> <value>
...@@ -85,10 +95,7 @@ ...@@ -85,10 +95,7 @@
<item> <item>
<key> <string>property_sheet_list</string> </key> <key> <string>property_sheet_list</string> </key>
<value> <value>
<tuple> <tuple/>
<string>AccountingPreferences</string>
<string>Preference</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -27,6 +27,8 @@ ...@@ -27,6 +27,8 @@
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
<persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent>
<persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent>
<persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent>
<persistent> <string encoding="base64">AAAAAAAAAAg=</string> </persistent>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -90,7 +92,7 @@ ...@@ -90,7 +92,7 @@
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAk=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
...@@ -155,7 +157,7 @@ ...@@ -155,7 +157,7 @@
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAg=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAo=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
...@@ -220,7 +222,137 @@ ...@@ -220,7 +222,137 @@
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAk=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAs=</string> </persistent>
</value>
</item>
<item>
<key> <string>category</string> </key>
<value> <string>object_exchange</string> </value>
</item>
<item>
<key> <string>condition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>icon</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>update</string> </value>
</item>
<item>
<key> <string>optional</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>permissions</string> </key>
<value>
<tuple>
<string>Manage portal</string>
</tuple>
</value>
</item>
<item>
<key> <string>priority</string> </key>
<value> <int>10</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Update Repository Information</string> </value>
</item>
<item>
<key> <string>visible</string> </key>
<value> <int>1</int> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="5" aka="AAAAAAAAAAU=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5Type.patches.ActionInformation</string>
<string>PatchedActionInformation</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>action</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAw=</string> </persistent>
</value>
</item>
<item>
<key> <string>category</string> </key>
<value> <string>object_exchange</string> </value>
</item>
<item>
<key> <string>condition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>icon</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>download_from_repository</string> </value>
</item>
<item>
<key> <string>optional</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>permissions</string> </key>
<value>
<tuple>
<string>Manage portal</string>
</tuple>
</value>
</item>
<item>
<key> <string>priority</string> </key>
<value> <int>10</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Download Business Templates From Repositories</string> </value>
</item>
<item>
<key> <string>visible</string> </key>
<value> <int>1</int> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="6" aka="AAAAAAAAAAY=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5Type.patches.ActionInformation</string>
<string>PatchedActionInformation</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>action</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAA0=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
...@@ -270,7 +402,7 @@ ...@@ -270,7 +402,7 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="5" aka="AAAAAAAAAAU="> <record id="7" aka="AAAAAAAAAAc=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
...@@ -285,7 +417,7 @@ ...@@ -285,7 +417,7 @@
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAo=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAA4=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
...@@ -335,7 +467,7 @@ ...@@ -335,7 +467,7 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="6" aka="AAAAAAAAAAY="> <record id="8" aka="AAAAAAAAAAg=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
...@@ -350,7 +482,7 @@ ...@@ -350,7 +482,7 @@
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAs=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAA8=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
...@@ -400,7 +532,7 @@ ...@@ -400,7 +532,7 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="7" aka="AAAAAAAAAAc="> <record id="9" aka="AAAAAAAAAAk=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
...@@ -419,7 +551,7 @@ ...@@ -419,7 +551,7 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="8" aka="AAAAAAAAAAg="> <record id="10" aka="AAAAAAAAAAo=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
...@@ -438,7 +570,45 @@ ...@@ -438,7 +570,45 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="9" aka="AAAAAAAAAAk="> <record id="11" aka="AAAAAAAAAAs=">
<pickle>
<tuple>
<tuple>
<string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${object_url}/TemplateTool_viewUpdateRepositoryBusinessTemplateListDialog</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="12" aka="AAAAAAAAAAw=">
<pickle>
<tuple>
<tuple>
<string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${object_url}/TemplateTool_viewDownloadRepositoryBusinessTemplateListDialog</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="13" aka="AAAAAAAAAA0=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
...@@ -457,7 +627,7 @@ ...@@ -457,7 +627,7 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="10" aka="AAAAAAAAAAo="> <record id="14" aka="AAAAAAAAAA4=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
...@@ -476,7 +646,7 @@ ...@@ -476,7 +646,7 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="11" aka="AAAAAAAAAAs="> <record id="15" aka="AAAAAAAAAA8=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
......
<?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>""" Format the date according to current user preferences."""\n
\n
if not date :\n
return \'\'\n
\n
try :\n
order = context.getPortalObject().portal_preferences.getPreferredDateInputOrder()\n
except AttributeError :\n
order = \'ymd\'\n
\n
y = date.year()\n
m = date.month()\n
d = date.day()\n
\n
result = "%04d/%02d/%02d" % (y, m, d)\n
if order == \'ymd\':\n
result = "%04d/%02d/%02d" % (y, m, d)\n
elif order == \'dmy\':\n
result = "%02d/%02d/%04d" % (d, m, y)\n
elif input_order == \'mdy\':\n
result = "%02d/%02d/%04d" % (m, d, y)\n
\n
if hour_minute or seconds : \n
if seconds :\n
hour_minute_text = "%02dh%02dmn%02ds" % (date.hour(), date.minute(), date.second())\n
else : \n
hour_minute_text = "%02dh%02dmn" % (date.hour(), date.minute())\n
result = context.Base_TranslateString("${date} at ${hour_minute_text}", \n
mapping = {\'date\' : result, \'hour_minute_text\' : hour_minute_text })\n
\n
\n
return result\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>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XRlU3RyaW5ncx4AAAAke2RhdGV9
IGF0ICR7aG91cl9taW51dGVfdGV4dH1zBwAAAG1hcHBpbmdzBAAAAGRhdGVzEAAAAGhvdXJfbWlu
dXRlX3RleHQoDQAAAHMEAAAAZGF0ZXMJAAAAX2dldGF0dHJfcwcAAABjb250ZXh0cwUAAABvcmRl
cnMOAAAAQXR0cmlidXRlRXJyb3JzAQAAAHlzAQAAAG1zAQAAAGRzBgAAAHJlc3VsdHMLAAAAaW5w
dXRfb3JkZXJzCwAAAGhvdXJfbWludXRlcwcAAABzZWNvbmRzcxAAAABob3VyX21pbnV0ZV90ZXh0
KA0AAABzBAAAAGRhdGVzCwAAAGhvdXJfbWludXRlcwcAAABzZWNvbmRzcwkAAABfZ2V0YXR0cl9z
BwAAAGNvbnRleHRzBQAAAG9yZGVycw4AAABBdHRyaWJ1dGVFcnJvcnMBAAAAeXMBAAAAbXMBAAAA
ZHMGAAAAcmVzdWx0cwsAAABpbnB1dF9vcmRlcnMQAAAAaG91cl9taW51dGVfdGV4dCgAAAAAKAAA
AABzDwAAAFNjcmlwdCAoUHl0aG9uKXMPAAAAQmFzZV9Gb3JtYXREYXRlAQAAAHMuAAAAAAIIAQgC
AwErAQ4BCwISARIBEgITAQ0BFwENARcBDQEXAg4BBwE7AigBEgEfAygBAAAAcw8AAABCYXNlX0Zv
cm1hdERhdGUoAQAAAHMPAAAAQmFzZV9Gb3JtYXREYXRlKAAAAAAoAAAAAHMPAAAAU2NyaXB0IChQ
eXRob24pcwgAAAA8bW9kdWxlPgEAAABzAAAAAA==</string> </value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value> <string>Script (Python):/nexedi/erp5_core/Base_FormatDate</string> </value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>date, hour_minute=0, seconds=0</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>3</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>date</string>
<string>hour_minute</string>
<string>seconds</string>
<string>_getattr_</string>
<string>context</string>
<string>order</string>
<string>AttributeError</string>
<string>y</string>
<string>m</string>
<string>d</string>
<string>result</string>
<string>input_order</string>
<string>hour_minute_text</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<int>0</int>
<int>0</int>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Base_FormatDate</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -69,26 +69,27 @@ ...@@ -69,26 +69,27 @@
<value> <string>from Products.CMFCore.utils import getToolByName\n <value> <string>from Products.CMFCore.utils import getToolByName\n
translation_service = getToolByName(context, \'translation_service\', None)\n translation_service = getToolByName(context, \'translation_service\', None)\n
if translation_service is not None :\n if translation_service is not None :\n
return translation_service.translate(catalog, msg).encode(\'utf8\')\n return translation_service.translate(catalog, msg, **kw).encode(encoding)\n
else :\n else :\n
return message\n return msg\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAgAAAEAAAABzEAAAAGQBAGQCAIQBAFoAAGQAAFMoAwAAAE5zAgAAAHVpYwIAAAAJ <value> <string encoding="base64">YwAAAAAAAAAAAwAAAEAAAABzEwAAAGQBAGQCAGQDAIQCAFoAAGQAAFMoBAAAAE5zAgAAAHVpcwQA
AAAABwAAAEMAAABzXQAAAGQBAGsAAGwBAH0DAAF8AwB0AgBkAgB0AwCDAwB9BgB8BgB0AwBqCQBv AAB1dGY4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2VzCQAA b2RpbmdzAgAAAGt3cxYAAABQcm9kdWN0cy5DTUZDb3JlLnV0aWxzcw0AAABnZXRUb29sQnlOYW1l
AF9nZXRhdHRyX3MHAAAAbWVzc2FnZSgAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMUAAAA cwcAAABjb250ZXh0cwQAAABOb25lcxMAAAB0cmFuc2xhdGlvbl9zZXJ2aWNlcwkAAABfZ2V0YXR0
QmFzZV9UcmFuc2xhdGVTdHJpbmcBAAAAcwgAAAANARIBDQEpAigBAAAAcxQAAABCYXNlX1RyYW5z cl9zBwAAAF9hcHBseV8oAAAAACgAAAAAcw8AAABTY3JpcHQgKFB5dGhvbilzFAAAAEJhc2VfVHJh
bGF0ZVN0cmluZygBAAAAcxQAAABCYXNlX1RyYW5zbGF0ZVN0cmluZygAAAAAKAAAAABzDwAAAFNj bnNsYXRlU3RyaW5nAQAAAHMIAAAADQESAQ0BLwIoAQAAAHMUAAAAQmFzZV9UcmFuc2xhdGVTdHJp
cmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value> bmcoAQAAAHMUAAAAQmFzZV9UcmFuc2xhdGVTdHJpbmcoAAAAACgAAAAAcw8AAABTY3JpcHQgKFB5
dGhvbilzCAAAADxtb2R1bGU+AQAAAHMAAAAA</string> </value>
</item> </item>
<item> <item>
<key> <string>_filepath</string> </key> <key> <string>_filepath</string> </key>
...@@ -102,7 +103,7 @@ cmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value> ...@@ -102,7 +103,7 @@ cmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value>
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>msg, catalog="ui"</string> </value> <value> <string>msg, catalog="ui", encoding=\'utf8\', **kw</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -122,7 +123,7 @@ cmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value> ...@@ -122,7 +123,7 @@ cmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value>
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>2</int> </value> <value> <int>3</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
...@@ -130,13 +131,15 @@ cmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value> ...@@ -130,13 +131,15 @@ cmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value>
<tuple> <tuple>
<string>msg</string> <string>msg</string>
<string>catalog</string> <string>catalog</string>
<string>encoding</string>
<string>kw</string>
<string>Products.CMFCore.utils</string> <string>Products.CMFCore.utils</string>
<string>getToolByName</string> <string>getToolByName</string>
<string>context</string> <string>context</string>
<string>None</string> <string>None</string>
<string>translation_service</string> <string>translation_service</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>message</string> <string>_apply_</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -150,6 +153,7 @@ cmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value> ...@@ -150,6 +153,7 @@ cmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value>
<value> <value>
<tuple> <tuple>
<string>ui</string> <string>ui</string>
<string>utf8</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -68,8 +68,8 @@ ...@@ -68,8 +68,8 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>from Products.CMFCore.utils import getToolByName\n <value> <string>from Products.CMFCore.utils import getToolByName\n
\n \n
N_ = lambda msg: context.translation_service.translate(\'ui\', msg).encode(\'utf-8\')\n N_ = context.Base_TranslateString\n
wf = getToolByName(context, \'portal_workflow\')[workflow_id]\n wf = getToolByName(context, \'portal_workflow\')[wf_id]\n
item_list = []\n item_list = []\n
\n \n
for state in wf.states.objectValues() :\n for state in wf.states.objectValues() :\n
...@@ -81,26 +81,21 @@ return item_list\n ...@@ -81,26 +81,21 @@ return item_list\n
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAAsAAAAKAAAAQwAA <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAAsAAAAKAAAAQwAA
AHOZAAAAZAEAawAAbAEAfQIAAWQCAIQAAH0DAHQDAHwCAHQEAGQDAIMCAHwAAIMCAH0GAGcAAH0H AHOfAAAAZAEAawAAbAEAfQIAAXQCAHQDAGQCAIMCAH0FAHQFAHwCAHQDAGQDAIMCAHwAAIMCAH0H
AHhaAHQIAHQJAHQJAHwGAGQEAIMCAGQFAIMCAIMAAIMBAERdNwB9CgB0CQB8BwBkBgCDAgB8AwB0 AGcAAH0IAHhaAHQJAHQCAHQCAHwHAGQEAIMCAGQFAIMCAIMAAIMBAERdNwB9CgB0AgB8CABkBgCD
CQB8CgBkBwCDAgCDAQB0CQB8CgBkCACDAgBmAgCDAQABcVYAV3wHAFNkAABTKAkAAABOKAEAAABz AgB8BQB0AgB8CgBkBwCDAgCDAQB0AgB8CgBkCACDAgBmAgCDAQABcVwAV3wIAFNkAABTKAkAAABO
DQAAAGdldFRvb2xCeU5hbWVjAQAAAAMAAAAFAAAAQwAAAHMuAAAAdAAAdAAAdAAAdAEAZAEAgwIA KAEAAABzDQAAAGdldFRvb2xCeU5hbWVzFAAAAEJhc2VfVHJhbnNsYXRlU3RyaW5ncw8AAABwb3J0
ZAIAgwIAZAMAfAAAgw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v
a2Zsb3dfaWRzAgAAAHdmcwkAAABpdGVtX2xpc3RzCQAAAF9nZXRpdGVyX3MJAAAAX2dldGF0dHJf bilzJwAAAEJhc2VfZ2V0VHJhbnNsYXRlZFdvcmtmbG93U3RhdGVJdGVtTGlzdAEAAABzDgAAAA0C
cwUAAABzdGF0ZSgLAAAAcwsAAAB3b3JrZmxvd19pZHMWAAAAUHJvZHVjdHMuQ01GQ29yZS51dGls DwEYAQYCIgAJATICKAEAAABzJwAAAEJhc2VfZ2V0VHJhbnNsYXRlZFdvcmtmbG93U3RhdGVJdGVt
c3MNAAAAZ2V0VG9vbEJ5TmFtZXMCAAAATl9zCQAAAF9nZXRpdGVtX3MHAAAAY29udGV4dHMCAAAA TGlzdCgBAAAAcycAAABCYXNlX2dldFRyYW5zbGF0ZWRXb3JrZmxvd1N0YXRlSXRlbUxpc3QoAAAA
d2ZzCQAAAGl0ZW1fbGlzdHMJAAAAX2dldGl0ZXJfcwkAAABfZ2V0YXR0cl9zBQAAAHN0YXRlKAAA ACgAAAAAcw8AAABTY3JpcHQgKFB5dGhvbilzCAAAADxtb2R1bGU+AQAAAHMAAAAA</string> </value>
AAAoAAAAAHMPAAAAU2NyaXB0IChQeXRob24pcycAAABCYXNlX2dldFRyYW5zbGF0ZWRXb3JrZmxv
d1N0YXRlSXRlbUxpc3QBAAAAcw4AAAANAgkBGAEGAiIACQEyAigBAAAAcycAAABCYXNlX2dldFRy
YW5zbGF0ZWRXb3JrZmxvd1N0YXRlSXRlbUxpc3QoAQAAAHMnAAAAQmFzZV9nZXRUcmFuc2xhdGVk
V29ya2Zsb3dTdGF0ZUl0ZW1MaXN0KAAAAAAoAAAAAHMPAAAAU2NyaXB0IChQeXRob24pcwgAAAA8
bW9kdWxlPgEAAABzAAAAAA==</string> </value>
</item> </item>
<item> <item>
<key> <string>_filepath</string> </key> <key> <string>_filepath</string> </key>
...@@ -108,7 +103,7 @@ bW9kdWxlPgEAAABzAAAAAA==</string> </value> ...@@ -108,7 +103,7 @@ bW9kdWxlPgEAAABzAAAAAA==</string> </value>
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>workflow_id</string> </value> <value> <string>wf_id</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -134,16 +129,16 @@ bW9kdWxlPgEAAABzAAAAAA==</string> </value> ...@@ -134,16 +129,16 @@ bW9kdWxlPgEAAABzAAAAAA==</string> </value>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>workflow_id</string> <string>wf_id</string>
<string>Products.CMFCore.utils</string> <string>Products.CMFCore.utils</string>
<string>getToolByName</string> <string>getToolByName</string>
<string>_getattr_</string>
<string>context</string>
<string>N_</string> <string>N_</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>context</string>
<string>wf</string> <string>wf</string>
<string>item_list</string> <string>item_list</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>_getattr_</string>
<string>state</string> <string>state</string>
</tuple> </tuple>
</value> </value>
......
...@@ -23,16 +23,7 @@ ...@@ -23,16 +23,7 @@
<item> <item>
<key> <string>__ac_local_roles__</string> </key> <key> <string>__ac_local_roles__</string> </key>
<value> <value>
<dictionary> <none/>
<item>
<key> <string>yo</string> </key>
<value>
<list>
<string>Owner</string>
</list>
</value>
</item>
</dictionary>
</value> </value>
</item> </item>
<item> <item>
......
<?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>REQUEST = container.REQUEST\n
RESPONSE = REQUEST.RESPONSE\n
\n
uids = getattr(REQUEST, \'uids\', ())\n
ret_url = \'/\'.join([context.absolute_url(), REQUEST.get(\'form_id\', \'view\')])\n
#return repr(len(uids))\n
if len(uids) == 0:\n
RESPONSE.redirect("%s?portal_status_message=No+Business+Template+Specified" % ret_url)\n
return\n
\n
id_list = []\n
for uid in uids:\n
repository, id = context.decodeRepositoryBusinessTemplateUid(uid)\n
bt = context.download(\'/\'.join([repository, id]))\n
id_list.append(bt.getId())\n
\n
RESPONSE.redirect("%s?portal_status_message=Business+Templates+Downloaded+As:+%s" % (ret_url, \',+\'.join(id_list)))\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAAAAAA8AAAAOAAAAQwAA
AHNTAQAAdAAAdAEAZAEAgwIAfQIAdAAAfAIAZAIAgwIAfQMAdAQAfAIAZAMAZgAAgwMAfQUAdAAA
ZAQAZAUAgwIAdAAAdAYAZAYAgwIAgwAAdAAAfAIAZAcAgwIAZAgAZAkAgwIAZwIAgwEAfQcAdAgA
fAUAgwEAZAoAagIAbx8AAXQAAHwDAGQLAIMCAGQMAHwHABaDAQABZAAAU24BAAFnAAB9CQB4fwB0
CgB8BQCDAQ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QAAAF9nZXRpdGVyX3MDAAAAdWlkcwoAAAByZXBvc2l0b3J5cwIAAABpZHMCAAAAYnQoAAAAACgA
AAAAcw8AAABTY3JpcHQgKFB5dGhvbilzMwAAAFRlbXBsYXRlVG9vbF9kb3dubG9hZFJlcG9zaXRv
cnlCdXNpbmVzc1RlbXBsYXRlTGlzdAEAAABzGgAAAA8BDwISATkCFgEUAQgCBgENAAYBIgEtASMC
KAEAAABzMwAAAFRlbXBsYXRlVG9vbF9kb3dubG9hZFJlcG9zaXRvcnlCdXNpbmVzc1RlbXBsYXRl
TGlzdCgBAAAAczMAAABUZW1wbGF0ZVRvb2xfZG93bmxvYWRSZXBvc2l0b3J5QnVzaW5lc3NUZW1w
bGF0ZUxpc3QoAAAAACgAAAAAcw8AAABTY3JpcHQgKFB5dGhvbilzCAAAADxtb2R1bGU+AQAAAHMA
AAAA</string> </value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value> <string>Script (Python):/nexedi/portal_skins/erp5_core/TemplateTool_downloadRepositoryBusinessTemplateList</string> </value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</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>_getattr_</string>
<string>container</string>
<string>REQUEST</string>
<string>RESPONSE</string>
<string>getattr</string>
<string>uids</string>
<string>context</string>
<string>ret_url</string>
<string>len</string>
<string>id_list</string>
<string>_getiter_</string>
<string>uid</string>
<string>repository</string>
<string>id</string>
<string>bt</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>TemplateTool_downloadRepositoryBusinessTemplateList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -387,7 +387,9 @@ ...@@ -387,7 +387,9 @@
</item> </item>
<item> <item>
<key> <string>count_method</string> </key> <key> <string>count_method</string> </key>
<value> <string></string> </value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>css_class</string> </key> <key> <string>css_class</string> </key>
...@@ -468,7 +470,7 @@ ...@@ -468,7 +470,7 @@
<item> <item>
<key> <string>list_method</string> </key> <key> <string>list_method</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
...@@ -634,7 +636,26 @@ ...@@ -634,7 +636,26 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>method_name</string> </key> <key> <string>method_name</string> </key>
<value> <string>objectValues</string> </value> <value> <string>countFolder</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.MethodField</string>
<string>Method</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>method_name</string> </key>
<value> <string>searchFolder</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5Form.Form</string>
<string>ERP5Form</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<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/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>action</string> </key>
<value> <string>TemplateTool_downloadRepositoryBusinessTemplateList</string> </value>
</item>
<item>
<key> <string>encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>enctype</string> </key>
<value> <string>multipart/form-data</string> </value>
</item>
<item>
<key> <string>group_list</string> </key>
<value>
<list>
<string>left</string>
<string>right</string>
<string>center</string>
<string>bottom</string>
<string>hidden</string>
</list>
</value>
</item>
<item>
<key> <string>groups</string> </key>
<value>
<dictionary>
<item>
<key> <string>bottom</string> </key>
<value>
<list>
<string>listbox</string>
</list>
</value>
</item>
<item>
<key> <string>center</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>hidden</string> </key>
<value>
<list>
<string>listbox_dependency_list</string>
</list>
</value>
</item>
<item>
<key> <string>left</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>right</string> </key>
<value>
<list/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>TemplateTool_viewDownloadRepositoryBusinessTemplateListDialog</string> </value>
</item>
<item>
<key> <string>method</string> </key>
<value> <string>POST</string> </value>
</item>
<item>
<key> <string>name</string> </key>
<value> <string>PortalTemplates_downloadRepositoryBusinessTemplateList</string> </value>
</item>
<item>
<key> <string>pt</string> </key>
<value> <string>form_dialog</string> </value>
</item>
<item>
<key> <string>row_length</string> </key>
<value> <int>4</int> </value>
</item>
<item>
<key> <string>stored_encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Download Business Templates From Repositories</string> </value>
</item>
<item>
<key> <string>unicode_mode</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>update_action</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5Form.ListBox</string>
<string>ListBox</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>listbox</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>all_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>all_editable_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>count_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>domain_root_list</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>domain_tree</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>global_attributes</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>lines</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>list_action</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>list_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>meta_types</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>portal_types</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>report_root_list</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>report_tree</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>search</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>search_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>select</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>selection_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>sort</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>sort_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>stat_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>stat_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>url_columns</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>all_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>all_editable_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>count_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>domain_root_list</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>domain_tree</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>global_attributes</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>lines</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>list_action</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>list_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>meta_types</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>portal_types</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>report_root_list</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>report_tree</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>search</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>search_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>select</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>selection_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>sort</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>sort_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>stat_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>stat_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>url_columns</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>all_columns</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>all_editable_columns</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>columns</string> </key>
<value>
<list>
<tuple>
<string>title</string>
<string>Name</string>
</tuple>
<tuple>
<string>version</string>
<string>Version</string>
</tuple>
<tuple>
<string>description</string>
<string>Description</string>
</tuple>
<tuple>
<string>dependency_list</string>
<string>Dependencies</string>
</tuple>
<tuple>
<string>license</string>
<string>License</string>
</tuple>
<tuple>
<string>version_state_title</string>
<string>State</string>
</tuple>
</list>
</value>
</item>
<item>
<key> <string>count_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default_params</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>domain_root_list</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>domain_tree</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>editable_columns</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>global_attributes</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>lines</string> </key>
<value> <int>50</int> </value>
</item>
<item>
<key> <string>list_action</string> </key>
<value> <string>list</string> </value>
</item>
<item>
<key> <string>list_method</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>meta_types</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>portal_types</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>report_root_list</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>report_tree</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>search</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>search_columns</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>select</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>selection_name</string> </key>
<value> <string>template_tool_download_selection</string> </value>
</item>
<item>
<key> <string>sort</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>sort_columns</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>stat_columns</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>stat_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Business Templates</string> </value>
</item>
<item>
<key> <string>url_columns</string> </key>
<value>
<list>
<tuple>
<string>title</string>
<string></string>
</tuple>
<tuple>
<string>version</string>
<string></string>
</tuple>
<tuple>
<string>description</string>
<string></string>
</tuple>
<tuple>
<string>dependency_list</string>
<string></string>
</tuple>
<tuple>
<string>license</string>
<string></string>
</tuple>
<tuple>
<string>version_state_title</string>
<string></string>
</tuple>
</list>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.MethodField</string>
<string>Method</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>method_name</string> </key>
<value> <unicode>getRepositoryBusinessTemplateList</unicode> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.StandardFields</string>
<string>StringField</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>listbox_dependency_list</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
<item>
<key> <string>required_not_found</string> </key>
<value> <string>Input is required but no input given.</string> </value>
</item>
<item>
<key> <string>too_long</string> </key>
<value> <string>Too much input was given.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>display_maxwidth</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>display_width</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>max_length</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>truncate</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>unicode</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>whitespace_preserve</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>display_maxwidth</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>display_width</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>max_length</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>truncate</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>unicode</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>whitespace_preserve</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>display_maxwidth</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>display_width</string> </key>
<value> <int>20</int> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>max_length</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Dependencies</string> </value>
</item>
<item>
<key> <string>truncate</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>unicode</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>whitespace_preserve</string> </key>
<value> <int>0</int> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: \', \'.join(cell.getDependencyList() or [])</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5Form.Form</string>
<string>ERP5Form</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<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/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>action</string> </key>
<value> <string>updateRepositoryBusinessTemplateList</string> </value>
</item>
<item>
<key> <string>encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>enctype</string> </key>
<value> <string>multipart/form-data</string> </value>
</item>
<item>
<key> <string>group_list</string> </key>
<value>
<list>
<string>Default</string>
</list>
</value>
</item>
<item>
<key> <string>groups</string> </key>
<value>
<dictionary>
<item>
<key> <string>Default</string> </key>
<value>
<list>
<string>my_repository_list</string>
</list>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>TemplateTool_viewUpdateRepositoryBusinessTemplateListDialog</string> </value>
</item>
<item>
<key> <string>method</string> </key>
<value> <string>POST</string> </value>
</item>
<item>
<key> <string>name</string> </key>
<value> <string>PortalTemplates_updateRepositoryBusinessTemplateList</string> </value>
</item>
<item>
<key> <string>pt</string> </key>
<value> <string>form_dialog</string> </value>
</item>
<item>
<key> <string>row_length</string> </key>
<value> <int>4</int> </value>
</item>
<item>
<key> <string>stored_encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Update Repository Information</string> </value>
</item>
<item>
<key> <string>unicode_mode</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>update_action</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.StandardFields</string>
<string>LinesField</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>my_repository_list</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
<item>
<key> <string>line_too_long</string> </key>
<value> <string>A line was too long.</string> </value>
</item>
<item>
<key> <string>required_not_found</string> </key>
<value> <string>Input is required but no input given.</string> </value>
</item>
<item>
<key> <string>too_long</string> </key>
<value> <string>You entered too many characters.</string> </value>
</item>
<item>
<key> <string>too_many_lines</string> </key>
<value> <string>You entered too many lines.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>max_length</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>max_linelength</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>max_lines</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>unicode</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>view_separator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>whitespace_preserve</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>max_length</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>max_linelength</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>max_lines</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>unicode</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>view_separator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>whitespace_preserve</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>5</int> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>max_length</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>max_linelength</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>max_lines</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Repositories</string> </value>
</item>
<item>
<key> <string>unicode</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>view_separator</string> </key>
<value> <string encoding="base64">Cg==</string> </value>
</item>
<item>
<key> <string>whitespace_preserve</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>40</int> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -66,55 +66,30 @@ ...@@ -66,55 +66,30 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>result = {}\n <value> <string># 0.5 is too small and can crash pdf generation\n
\n
# 0.5 is too small and can crash pdf generation\n
min_column_width = 1\n min_column_width = 1\n
\n \n
max_line_len = {}\n
for listboxline in listboxline_list:\n for listboxline in listboxline_list:\n
if not listboxline.isTitleLine():\n
line_width = 0\n line_width = 0\n
col_count = 0\n col_count = 0\n
if is_report_tree_mode:\n
col_count += 1\n
column_property = listboxline.getSectionName()\n
if column_property is None: \n
string_property = \'\'\n
else:\n
string_property = str(column_property)\n
line_width += len(string_property) + section_width * (listboxline.getSectionDepth() - 1)\n
for column_id, column_property in listboxline.getColumnItemList(): \n
col_count += 1\n
if column_property is None: \n
string_property = \'\'\n
else:\n
string_property = str(column_property)\n
line_width += len(string_property)\n
for column_id, column_property in listboxline.getColumnItemList():\n for column_id, column_property in listboxline.getColumnItemList():\n
if column_property is None: \n if column_property is None: \n
string_property = \'\'\n string_property = \'\'\n
else:\n else:\n
string_property = str(column_property)\n string_property = str(column_property)\n
result[column_id] = max(result.get(column_id,min_column_width), min(frame_width * 2 / col_count, frame_width * len(str(string_property)) / max(line_width, 1)))\n line_width += len(string_property)\n
if is_report_tree_mode:\n if listboxline.isStatLine():\n
column_property = listboxline.getSectionName()\n string_property = "%s longer" % string_property\n
if column_property is None: \n new_column_max_len = max(len(string_property), max_line_len.get(column_id, 0))\n
string_property = \'\'\n update_dict = {}\n
else:\n update_dict[column_id] = new_column_max_len\n
string_property = str(column_property)\n max_line_len.update(update_dict)\n
column_id = \'section_name\'\n \n
result[column_id] = max(result.get(column_id,min_column_width), min(frame_width * 3 / col_count, frame_width * (len(str(string_property)) + section_width * (listboxline.getSectionDepth() - 1)) / max(line_width, 1)))\n total_max_len = float(sum(max_line_len.values()))\n
\n result = {}\n
total_col_width = 0.0\n for column_id, max_len in max_line_len.items() :\n
for column_id in result.keys():\n result[column_id] = max( (max(max_len, 1) / total_max_len) * frame_width, min_column_width)\n
if result[column_id] == 0.0:\n
result[column_id] = 1.0\n
for column_id in result.keys():\n
if column_id != \'section_name\' or is_report_tree_mode:\n
total_col_width += result[column_id]\n
for column_id in result.keys():\n
if column_id != \'section_name\' or is_report_tree_mode:\n
result[column_id] = result[column_id] * frame_width / total_col_width \n
\n \n
return result\n return result\n
</string> </value> </string> </value>
...@@ -122,43 +97,33 @@ return result\n ...@@ -122,43 +97,33 @@ return result\n
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAwAAAEAAAABzEwAAAGQBAGQCAGQDAIQCAFoAAGQAAFMoBAAAAE5mBDE5LjBmAzQu <value> <string encoding="base64">YwAAAAAAAAAAAwAAAEAAAABzEwAAAGQBAGQCAGQDAIQCAFoAAGQAAFMoBAAAAE5mBDE5LjBmAzQu
MGMFAAAAFwAAABsAAABDAAAAc44DAABoAAB9BQBkAQB9BgB4egJ0AgB8AACDAQBEXWwCfQgAdAUA MGMFAAAAGwAAABIAAABDAAAAc4kBAABkAQB9BQBoAAB9BgB49AB0AgB8AACDAQBEXeYAfQgAZAIA
fAgAZAIAgwIAgwAADG9SAgFkAwB9CgBkAwB9CwB8AgBvawABfAsAZAEAN30LAHQFAHwIAGQEAIMC fQkAZAIAfQoAeNEAdAIAdAcAfAgAZAMAgwIAgwAAgwEARF23AHQCAAKDAQBcAgB9DAB9DQB8DQB0
AIMAAH0MAHwMAHQKAGoIAG8KAAFkBQB9DgBuDQABdAwAfAwAgwEAfQ4AfAoAdA0AfA4AgwEAfAQA CgBqCABvCgABZAQAfQ8Abg0AAXQMAHwNAIMBAH0PAHwJAHQNAHwPAIMBADd9CQB0BwB8CABkBQCD
dAUAfAgAZAYAgwIAgwAAZAEAGBQXN30KAG4BAAF4agB0AgB0BQB8CABkBwCDAgCDAACDAQBEXVAA AgCDAABvDgABZAYAfA8AFn0PAG4BAAF0DgB0DQB8DwCDAQB0BwB8BgBkBwCDAgB8DABkAg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epath</string> </key> <key> <string>_filepath</string> </key>
...@@ -203,24 +168,28 @@ AAA=</string> </value> ...@@ -203,24 +168,28 @@ AAA=</string> </value>
<string>is_report_tree_mode</string> <string>is_report_tree_mode</string>
<string>frame_width</string> <string>frame_width</string>
<string>section_width</string> <string>section_width</string>
<string>result</string>
<string>min_column_width</string> <string>min_column_width</string>
<string>max_line_len</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>listboxline</string> <string>listboxline</string>
<string>_getattr_</string>
<string>line_width</string> <string>line_width</string>
<string>col_count</string> <string>col_count</string>
<string>_getattr_</string>
<string>column_id</string>
<string>column_property</string> <string>column_property</string>
<string>None</string> <string>None</string>
<string>string_property</string> <string>string_property</string>
<string>str</string> <string>str</string>
<string>len</string> <string>len</string>
<string>column_id</string>
<string>max</string> <string>max</string>
<string>min</string> <string>new_column_max_len</string>
<string>update_dict</string>
<string>_write_</string> <string>_write_</string>
<string>total_col_width</string> <string>float</string>
<string>_getitem_</string> <string>sum</string>
<string>total_max_len</string>
<string>result</string>
<string>max_len</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -242,6 +211,10 @@ AAA=</string> </value> ...@@ -242,6 +211,10 @@ AAA=</string> </value>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>ListBox_getColumnWithDict</string> </value> <value> <string>ListBox_getColumnWithDict</string> </value>
</item> </item>
<item>
<key> <string>title</string> </key>
<value> <string>FIXME: does not support report_tree</string> </value>
</item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
<value> <value>
......
...@@ -44,6 +44,12 @@ ...@@ -44,6 +44,12 @@
</object> </object>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
...@@ -81,6 +87,8 @@ ...@@ -81,6 +87,8 @@
<paragraphstyle name="ParaHeadLine3" align="RIGHT" fontname="Helvetica" fontsize="6"/>\n <paragraphstyle name="ParaHeadLine3" align="RIGHT" fontname="Helvetica" fontsize="6"/>\n
\n \n
<paragraphstyle name="TableStandard" parent="Normal" fontname="Helvetica" fontsize="8" alignment="left" />\n <paragraphstyle name="TableStandard" parent="Normal" fontname="Helvetica" fontsize="8" alignment="left" />\n
<paragraphstyle name="TableStandardLeftAligned" parent="Normal" fontname="Helvetica" fontsize="7" alignment="left" />\n
<paragraphstyle name="TableStandardRightAligned" parent="Normal" fontname="Helvetica" fontsize="7" alignment="right" />\n
<paragraphstyle name="TableHeader" parent="Normal" fontname="Helvetica-Oblique" fontsize="9" alignment="left" />\n <paragraphstyle name="TableHeader" parent="Normal" fontname="Helvetica-Oblique" fontsize="9" alignment="left" />\n
<paragraphstyle name="TableLastLine" parent="Normal" fontname="Helvetica-Oblique" fontsize="11" alignment="left" />\n <paragraphstyle name="TableLastLine" parent="Normal" fontname="Helvetica-Oblique" fontsize="11" alignment="left" />\n
\n \n
......
...@@ -44,6 +44,12 @@ ...@@ -44,6 +44,12 @@
</object> </object>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
...@@ -62,6 +68,7 @@ ...@@ -62,6 +68,7 @@
tal:define="group_list python: form.get_groups(include_empty=1);\n tal:define="group_list python: form.get_groups(include_empty=1);\n
field_errors python: request.get(\'field_errors\',{});\n field_errors python: request.get(\'field_errors\',{});\n
dummy python: request.set(\'here\',here); ">\n dummy python: request.set(\'here\',here); ">\n
\n
\n \n
<tal:block tal:repeat="group python: group_list[:3]">\n <tal:block tal:repeat="group python: group_list[:3]">\n
<tal:block tal:define="field_list python: form.get_fields_in_group(group)">\n <tal:block tal:define="field_list python: form.get_fields_in_group(group)">\n
...@@ -72,7 +79,7 @@ ...@@ -72,7 +79,7 @@
<tal:block tal:condition="python:field.meta_type != \'HiddenStringField\'">\n <tal:block tal:condition="python:field.meta_type != \'HiddenStringField\'">\n
<tr>\n <tr>\n
<td tal:attributes="colwidth python: \'5cm\'" >\n <td tal:attributes="colwidth python: \'5cm\'" >\n
<para style="TableHeader" tal:content="python: field.get_value(\'title\') " i18n:translate=""/>\n <para style="TableHeader" tal:content="python: here.translation_service.translate(\'ui\', field.get_value(\'title\')).encode(\'utf-8\')"/>\n
</td>\n </td>\n
<td tal:attributes="colwidth python: None" tal:define="value python: field.get_value(\'default\')">\n <td tal:attributes="colwidth python: None" tal:define="value python: field.get_value(\'default\')">\n
<tal:block tal:condition="python: same_type(value,[]) or same_type(value,())">\n <tal:block tal:condition="python: same_type(value,[]) or same_type(value,())">\n
......
...@@ -44,13 +44,19 @@ ...@@ -44,13 +44,19 @@
</object> </object>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
<html>\n <html>\n
<head>\n <head>\n
<title tal:content="template/title">Listbox PDF Macro</title>\n <title tal:content="python: here.translation_service.translate(\'ui\', template.title).encode(\'utf8\')" >Listbox PDF Macro</title>\n
</head>\n </head>\n
<body> \n <body> \n
\n \n
...@@ -105,8 +111,8 @@ ...@@ -105,8 +111,8 @@
column_id python: column_item[0]"> \n column_id python: column_item[0]"> \n
<tal:block tal:condition="python: column_property is not None">\n <tal:block tal:condition="python: column_property is not None">\n
<td tal:attributes="colwidth python:\'%.2fcm\' % float(column_width[column_id])">\n <td tal:attributes="colwidth python:\'%.2fcm\' % float(column_width[column_id])">\n
<para style="TableHeader" tal:content="python: str(column_property)" i18n:translate=""/>\n <para style="TableHeader" tal:content="python: here.translation_service.translate(\'ui\', str(column_property)).encode(\'utf8\')"/>\n
</td>\n </td> \n
</tal:block>\n </tal:block>\n
<tal:block tal:condition="python: column_property is None">\n <tal:block tal:condition="python: column_property is None">\n
<td tal:attributes="colwidth python:\'%.2fcm\' % float(column_width[column_id])">\n <td tal:attributes="colwidth python:\'%.2fcm\' % float(column_width[column_id])">\n
...@@ -124,12 +130,13 @@ ...@@ -124,12 +130,13 @@
column_id python: column_item[0]"> \n column_id python: column_item[0]"> \n
<tal:block tal:condition="python: column_property is not None">\n <tal:block tal:condition="python: column_property is not None">\n
<td tal:attributes="colwidth python:\'%.2fcm\' % float(column_width[column_id])">\n <td tal:attributes="colwidth python:\'%.2fcm\' % float(column_width[column_id])">\n
<para style="TableStandard" tal:content="python: str(column_property)" />\n <para style="TableStandard" tal:content="python: str(column_property)" \n
tal:attributes="style python:column_id in (\'gap_id\', \'id\', \'title\', \'translated_portal_type\', \'third_party\', \'translated_simulation_state_title\') and \'TableStandardLeftAligned\' or \'TableStandardRightAligned\'" />\n
</td>\n </td>\n
</tal:block>\n </tal:block>\n
<tal:block tal:condition="python: column_property is None">\n <tal:block tal:condition="python: column_property is None">\n
<td>\n <td>\n
<para style="TableStandard" tal:content="python: \'\'" />\n <para style="TableStandard" tal:content="python: \'\' " />\n
</td>\n </td>\n
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
......
...@@ -44,6 +44,12 @@ ...@@ -44,6 +44,12 @@
</object> </object>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
......
...@@ -90,6 +90,8 @@ ...@@ -90,6 +90,8 @@
<paragraphstyle name="ParaHeadLine3" align="RIGHT" fontname="Helvetica" fontsize="6"/>\n <paragraphstyle name="ParaHeadLine3" align="RIGHT" fontname="Helvetica" fontsize="6"/>\n
\n \n
<paragraphstyle name="TableStandard" parent="Normal" fontname="Helvetica" fontsize="7" alignment="right" />\n <paragraphstyle name="TableStandard" parent="Normal" fontname="Helvetica" fontsize="7" alignment="right" />\n
<paragraphstyle name="TableStandardLeftAligned" parent="Normal" fontname="Helvetica" fontsize="7" alignment="left" />\n
<paragraphstyle name="TableStandardRightAligned" parent="Normal" fontname="Helvetica" fontsize="7" alignment="right" />\n
<paragraphstyle name="TableHeader" parent="Normal" fontname="Helvetica-Oblique" fontsize="7" alignment="left" />\n <paragraphstyle name="TableHeader" parent="Normal" fontname="Helvetica-Oblique" fontsize="7" alignment="left" />\n
<paragraphstyle name="TableLastLine" parent="Normal" fontname="Helvetica-Oblique" fontsize="7" alignment="right" />\n <paragraphstyle name="TableLastLine" parent="Normal" fontname="Helvetica-Oblique" fontsize="7" alignment="right" />\n
\n \n
...@@ -162,7 +164,7 @@ ...@@ -162,7 +164,7 @@
<pagetemplate id="FirstPage" nextid="FirstPage" startframe="content">\n <pagetemplate id="FirstPage" nextid="FirstPage" startframe="content">\n
<static>\n <static>\n
<infostring align="left" x="1cm" y= "29cm" size="8" font="Helvetica" color="(0,0,0)"\n <infostring align="left" x="1cm" y= "29cm" size="8" font="Helvetica" color="(0,0,0)"\n
tal:content="python:\'Printed by %s at %s\'%(user.getUserName(), DateTime())" >Printed by</infostring>\n tal:content="python: here.translation_service.translate(\'ui\', \'Printed by %(user)s at %(date)s\') % {\'user\':user.getUserName(), \'date\':DateTime()}" >Printed by</infostring>\n
<infostring align="left" x="18cm" y= "0.5cm" size="10" font="Helvetica" color="(0,0,0)" >Page %(page)s</infostring>\n <infostring align="left" x="18cm" y= "0.5cm" size="10" font="Helvetica" color="(0,0,0)" >Page %(page)s</infostring>\n
</static>\n </static>\n
\n \n
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
tal:define="global frame_width python:19"\n tal:define="global frame_width python:19"\n
metal:define-macro="master">\n metal:define-macro="master">\n
<title>List Print</title>\n <title>List Print</title>\n
<author>Nexedi</author>\n <author>ERP5</author>\n
<subject>Print Example</subject>\n <subject>Print Example</subject>\n
<content tal:define="group_list python: form.get_groups(include_empty=1);\n <content tal:define="group_list python: form.get_groups(include_empty=1);\n
field_errors python: request.get(\'field_errors\',{});\n field_errors python: request.get(\'field_errors\',{});\n
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
<parameter>FirstPage</parameter>\n <parameter>FirstPage</parameter>\n
</action>\n </action>\n
\n \n
<para tal:content="form/title" style="Title" i18n:translate="">toto</para>\n <para tal:content="form/title" style="Title" i18n:translate="" i18n:domain="ui">toto</para>\n
<spacer height="100"/>\n <spacer height="100"/>\n
\n \n
\n \n
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
<tal:block tal:condition="python:field.meta_type != \'HiddenStringField\'">\n <tal:block tal:condition="python:field.meta_type != \'HiddenStringField\'">\n
<tr>\n <tr>\n
<td tal:attributes="colwidth python: \'5cm\'" >\n <td tal:attributes="colwidth python: \'5cm\'" >\n
<para style="TableHeader" tal:content="python: field.get_value(\'title\') " i18n:translate=""/>\n <para style="TableHeader" tal:content="python: here.translation_service.translate(\'ui\', field.get_value(\'title\')).encode(\'utf-8\')" />\n
</td>\n </td>\n
<td tal:attributes="colwidth python: None" tal:define="value python: field.get_value(\'default\')">\n <td tal:attributes="colwidth python: None" tal:define="value python: field.get_value(\'default\')">\n
<tal:block tal:condition="python: same_type(value,[]) or same_type(value,())">\n <tal:block tal:condition="python: same_type(value,[]) or same_type(value,())">\n
...@@ -92,10 +92,13 @@ ...@@ -92,10 +92,13 @@
<para style="TableStandard" tal:content="python: str(item)" />\n <para style="TableStandard" tal:content="python: str(item)" />\n
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
<tal:block tal:condition="python: (not (same_type(value,[]) or same_type(value,()) )) and (value != None)">\n <tal:block tal:condition="python: not (same_type(value, []) or same_type(value, ()) or same_type(value, DateTime()) or same_type(value, None))">\n
<para style="TableStandard" tal:content="python: \'%s \' % value" />\n <para style="TableStandard" tal:content="python: \'%s \' % value" />\n
</tal:block>\n </tal:block>\n
<tal:block tal:condition="python: value == None">\n <tal:block tal:condition="python: same_type(value, DateTime())">\n
<para style="TableStandard" tal:content="python: field.render_view(value)" />\n
</tal:block>\n
<tal:block tal:condition="python: value is None">\n
<para style="TableStandard" tal:content="python: \' \'" />\n <para style="TableStandard" tal:content="python: \' \'" />\n
</tal:block>\n </tal:block>\n
</td>\n </td>\n
......
2005-12-18 yo
* The portal type Preference does not need to specify PropertySheets in the portal type, since they are defined in the product.
* Add skins and actions for repository support.
2005-12-18: jérome
* i18n : added Base_FormatDate, updated Base_TranslateString to use mapping.
2005-12-16: 2005-12-16:
* modify BusinessTemplate_getModifiedObject * modify BusinessTemplate_getModifiedObject
......
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