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 @@
<permission>
<name>Add Pluggable Index</name>
</permission>
<permission>
<name>Add Portal ZSyncer Tools</name>
</permission>
<permission>
<name>Add Python Scripts</name>
</permission>
......@@ -220,6 +223,9 @@
<permission>
<name>Add ZODB Mount Points</name>
</permission>
<permission>
<name>Add ZSyncers</name>
</permission>
<permission>
<name>Add Zope Tutorials</name>
</permission>
......@@ -529,6 +535,9 @@
<permission>
<name>WebDAV access</name>
</permission>
<permission>
<name>ZSyncer: Use ZSyncer</name>
</permission>
<permission>
<name>ZopeProfiler: manage</name>
</permission>
......
......@@ -239,6 +239,9 @@
<name>Add Pluggable Index</name>
<role>Manager</role>
</permission>
<permission>
<name>Add Portal ZSyncer Tools</name>
</permission>
<permission>
<name>Add Python Scripts</name>
<role>Manager</role>
......@@ -307,6 +310,9 @@
<name>Add ZODB Mount Points</name>
<role>Manager</role>
</permission>
<permission>
<name>Add ZSyncers</name>
</permission>
<permission>
<name>Add Zope Tutorials</name>
<role>Manager</role>
......@@ -745,6 +751,9 @@
<name>WebDAV access</name>
<role>Manager</role>
</permission>
<permission>
<name>ZSyncer: Use ZSyncer</name>
</permission>
<permission>
<name>ZopeProfiler: manage</name>
</permission>
......
......@@ -239,6 +239,9 @@
<name>Add Pluggable Index</name>
<role>Manager</role>
</permission>
<permission>
<name>Add Portal ZSyncer Tools</name>
</permission>
<permission>
<name>Add Python Scripts</name>
<role>Manager</role>
......@@ -307,6 +310,9 @@
<name>Add ZODB Mount Points</name>
<role>Manager</role>
</permission>
<permission>
<name>Add ZSyncers</name>
</permission>
<permission>
<name>Add Zope Tutorials</name>
<role>Manager</role>
......@@ -747,6 +753,9 @@
<name>WebDAV access</name>
<role>Manager</role>
</permission>
<permission>
<name>ZSyncer: Use ZSyncer</name>
</permission>
<permission>
<name>ZopeProfiler: manage</name>
</permission>
......
......@@ -36,6 +36,10 @@
<none/>
</value>
</item>
<item>
<key> <string>acquire_local_roles</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>allowed_content_types</string> </key>
<value>
......@@ -68,6 +72,12 @@
<key> <string>filter_content_types</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>group_list</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>hidden_content_type_list</string> </key>
<value>
......@@ -85,10 +95,7 @@
<item>
<key> <string>property_sheet_list</string> </key>
<value>
<tuple>
<string>AccountingPreferences</string>
<string>Preference</string>
</tuple>
<tuple/>
</value>
</item>
<item>
......
......@@ -27,6 +27,8 @@
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
<persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent>
<persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent>
<persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent>
<persistent> <string encoding="base64">AAAAAAAAAAg=</string> </persistent>
</tuple>
</value>
</item>
......@@ -90,7 +92,7 @@
<item>
<key> <string>action</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent>
<persistent> <string encoding="base64">AAAAAAAAAAk=</string> </persistent>
</value>
</item>
<item>
......@@ -155,7 +157,7 @@
<item>
<key> <string>action</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAg=</string> </persistent>
<persistent> <string encoding="base64">AAAAAAAAAAo=</string> </persistent>
</value>
</item>
<item>
......@@ -220,7 +222,137 @@
<item>
<key> <string>action</string> </key>
<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>
</item>
<item>
......@@ -270,7 +402,7 @@
</dictionary>
</pickle>
</record>
<record id="5" aka="AAAAAAAAAAU=">
<record id="7" aka="AAAAAAAAAAc=">
<pickle>
<tuple>
<tuple>
......@@ -285,7 +417,7 @@
<item>
<key> <string>action</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAo=</string> </persistent>
<persistent> <string encoding="base64">AAAAAAAAAA4=</string> </persistent>
</value>
</item>
<item>
......@@ -335,7 +467,7 @@
</dictionary>
</pickle>
</record>
<record id="6" aka="AAAAAAAAAAY=">
<record id="8" aka="AAAAAAAAAAg=">
<pickle>
<tuple>
<tuple>
......@@ -350,7 +482,7 @@
<item>
<key> <string>action</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAs=</string> </persistent>
<persistent> <string encoding="base64">AAAAAAAAAA8=</string> </persistent>
</value>
</item>
<item>
......@@ -400,7 +532,7 @@
</dictionary>
</pickle>
</record>
<record id="7" aka="AAAAAAAAAAc=">
<record id="9" aka="AAAAAAAAAAk=">
<pickle>
<tuple>
<tuple>
......@@ -419,7 +551,7 @@
</dictionary>
</pickle>
</record>
<record id="8" aka="AAAAAAAAAAg=">
<record id="10" aka="AAAAAAAAAAo=">
<pickle>
<tuple>
<tuple>
......@@ -438,7 +570,45 @@
</dictionary>
</pickle>
</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>
<tuple>
<tuple>
......@@ -457,7 +627,7 @@
</dictionary>
</pickle>
</record>
<record id="10" aka="AAAAAAAAAAo=">
<record id="14" aka="AAAAAAAAAA4=">
<pickle>
<tuple>
<tuple>
......@@ -476,7 +646,7 @@
</dictionary>
</pickle>
</record>
<record id="11" aka="AAAAAAAAAAs=">
<record id="15" aka="AAAAAAAAAA8=">
<pickle>
<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> <string encoding="base64">YwAAAAAAAAAAAwAAAEAAAABzEwAAAGQBAGQBAGQCAIQCAFoAAGQAAFMoAwAAAE5pAAAAAGMDAAAA
DQAAABgAAABDAAAAc70BAAB8AAAMbwgAAWQBAFNuAQABeSsAdAEAdAEAdAEAdAIAZAIAgwIAgwAA
ZAMAgwIAZAQAgwIAgwAAfQUAV24ZAAR0BABqCgBvDQABAQEBZAUAfQUAbgIAAVh0AQB8AABkBgCD
AgCDAAB9BwB0AQB8AABkBwCDAgCDAAB9CAB0AQB8AABkCACDAgCDAAB9CQBkCQB8BwB8CAB8CQBm
AwAWfQoAfAUAZAUAagIAbxcAAWQJAHwHAHwIAHwJAGYDABZ9CgBuSQABfAUAZAoAagIAbxcAAWQL
AHwJAHwIAHwHAGYDABZ9CgBuJQABdAkAZAwAagIAbxcAAWQLAHwIAHwJAHwHAGYDABZ9CgBuAQAB
fAEAcAQAAXw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AA
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 @@
<value> <string>from Products.CMFCore.utils import getToolByName\n
translation_service = getToolByName(context, \'translation_service\', 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
return message\n
return msg\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAgAAAEAAAABzEAAAAGQBAGQCAIQBAFoAAGQAAFMoAwAAAE5zAgAAAHVpYwIAAAAJ
AAAABwAAAEMAAABzXQAAAGQBAGsAAGwBAH0DAAF8AwB0AgBkAgB0AwCDAwB9BgB8BgB0AwBqCQBv
KQABdAUAdAUAfAYAZAMAgwIAfAEAfAAAgwIAZAQAgwIAZAUAgwEAU24FAAF0CABTZAAAUygGAAAA
TigBAAAAcw0AAABnZXRUb29sQnlOYW1lcxMAAAB0cmFuc2xhdGlvbl9zZXJ2aWNlcwkAAAB0cmFu
c2xhdGVzBgAAAGVuY29kZXMEAAAAdXRmOCgJAAAAcxYAAABQcm9kdWN0cy5DTUZDb3JlLnV0aWxz
cw0AAABnZXRUb29sQnlOYW1lcwcAAABjb250ZXh0cwQAAABOb25lcxMAAAB0cmFuc2xhdGlvbl9z
ZXJ2aWNlcwkAAABfZ2V0YXR0cl9zBwAAAGNhdGFsb2dzAwAAAG1zZ3MHAAAAbWVzc2FnZSgJAAAA
cwMAAABtc2dzBwAAAGNhdGFsb2dzFgAAAFByb2R1Y3RzLkNNRkNvcmUudXRpbHNzDQAAAGdldFRv
b2xCeU5hbWVzBwAAAGNvbnRleHRzBAAAAE5vbmVzEwAAAHRyYW5zbGF0aW9uX3NlcnZpY2VzCQAA
AF9nZXRhdHRyX3MHAAAAbWVzc2FnZSgAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMUAAAA
QmFzZV9UcmFuc2xhdGVTdHJpbmcBAAAAcwgAAAANARIBDQEpAigBAAAAcxQAAABCYXNlX1RyY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Fuc2xhdGVTdHJp
bmcoAQAAAHMUAAAAQmFzZV9UcmFuc2xhdGVTdHJpbmcoAAAAACgAAAAAcw8AAABTY3JpcHQgKFB5
dGhvbilzCAAAADxtb2R1bGU+AQAAAHMAAAAA</string> </value>
</item>
<item>
<key> <string>_filepath</string> </key>
......@@ -102,7 +103,7 @@ cmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>msg, catalog="ui"</string> </value>
<value> <string>msg, catalog="ui", encoding=\'utf8\', **kw</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
......@@ -122,7 +123,7 @@ cmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>2</int> </value>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
......@@ -130,13 +131,15 @@ cmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value>
<tuple>
<string>msg</string>
<string>catalog</string>
<string>encoding</string>
<string>kw</string>
<string>Products.CMFCore.utils</string>
<string>getToolByName</string>
<string>context</string>
<string>context</string>
<string>None</string>
<string>translation_service</string>
<string>_getattr_</string>
<string>message</string>
<string>_apply_</string>
</tuple>
</value>
</item>
......@@ -150,6 +153,7 @@ cmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value>
<value>
<tuple>
<string>ui</string>
<string>utf8</string>
</tuple>
</value>
</item>
......
......@@ -68,8 +68,8 @@
<key> <string>_body</string> </key>
<value> <string>from Products.CMFCore.utils import getToolByName\n
\n
N_ = lambda msg: context.translation_service.translate(\'ui\', msg).encode(\'utf-8\')\n
wf = getToolByName(context, \'portal_workflow\')[workflow_id]\n
N_ = context.Base_TranslateString\n
wf = getToolByName(context, \'portal_workflow\')[wf_id]\n
item_list = []\n
\n
for state in wf.states.objectValues() :\n
......@@ -81,26 +81,21 @@ return item_list\n
<item>
<key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAAsAAAAKAAAAQwAA
AHOZAAAAZAEAawAAbAEAfQIAAWQCAIQAAH0DAHQDAHwCAHQEAGQDAIMCAHwAAIMCAH0GAGcAAH0H
AHhaAHQIAHQJAHQJAHwGAGQEAIMCAGQFAIMCAIMAAIMBAERdNwB9CgB0CQB8BwBkBgCDAgB8AwB0
CQB8CgBkBwCDAgCDAQB0CQB8CgBkCACDAgBmAgCDAQABcVYAV3wHAFNkAABTKAkAAABOKAEAAABz
DQAAAGdldFRvb2xCeU5hbWVjAQAAAAMAAAAFAAAAQwAAAHMuAAAAdAAAdAAAdAAAdAEAZAEAgwIA
ZAIAgwIAZAMAfAAAgwIAZAQAgwIAZAUAgwEAUygGAAAATnMTAAAAdHJhbnNsYXRpb25fc2Vydmlj
ZXMJAAAAdHJhbnNsYXRlcwIAAAB1aXMGAAAAZW5jb2RlcwUAAAB1dGYtOCgDAAAAcwkAAABfZ2V0
YXR0cl9zBwAAAGNvbnRleHRzAwAAAG1zZygDAAAAcwMAAABtc2dzCQAAAF9nZXRhdHRyX3MHAAAA
Y29udGV4dCgAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMKAAAAPGxhbWJkYS42PgMAAABz
AAAAAHMPAAAAcG9ydGFsX3dvcmtmbG93cwYAAABzdGF0ZXNzDAAAAG9iamVjdFZhbHVlc3MGAAAA
YXBwZW5kcwUAAAB0aXRsZXMCAAAAaWQoCwAAAHMWAAAAUHJvZHVjdHMuQ01GQ29yZS51dGlsc3MN
AAAAZ2V0VG9vbEJ5TmFtZXMCAAAATl9zCQAAAF9nZXRpdGVtX3MHAAAAY29udGV4dHMLAAAAd29y
a2Zsb3dfaWRzAgAAAHdmcwkAAABpdGVtX2xpc3RzCQAAAF9n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sQnlO
YW1lcwkAAABfZ2V0YXR0cl9zBwAAAGNvbnRleHRzAgAAAE5fcwkAAABfZ2V0aXRlbV9zBQAAAHdm
X2lkcwIAAAB3ZnMJAAAAaXRlbV9saXN0cwkAAABfZ2V0aXRlcl9zBQAAAHN0YXRlKAsAAABzBQAA
AHdmX2lkcxYAAABQcm9kdWN0cy5DTUZDb3JlLnV0aWxzcw0AAABnZXRUb29sQnlOYW1lcwkAAABf
Z2V0YXR0cl9zBwAAAGNvbnRleHRzAgAAAE5fcwkAAABfZ2V0aXRlbV9zAgAAAHdmcwkAAABpdGVt
X2xpc3RzCQAAAF9nZXRpdGVyX3MFAAAAc3RhdGUoAAAAACgAAAAAcw8AAABTY3JpcHQgKFB5dGhv
bilzJwAAAEJhc2VfZ2V0VHJhbnNsYXRlZFdvcmtmbG93U3RhdGVJdGVtTGlzdAEAAABzDgAAAA0C
DwEYAQYCIgAJATICKAEAAABzJwAAAEJhc2VfZ2V0VHJhbnNsYXRlZFdvcmtmbG93U3RhdGVJdGVt
TGlzdCgBAAAAcycAAABCYXNlX2dldFRyYW5zbGF0ZWRXb3JrZmxvd1N0YXRlSXRlbUxpc3QoAAAA
ACgAAAAAcw8AAABTY3JpcHQgKFB5dGhvbilzCAAAADxtb2R1bGU+AQAAAHMAAAAA</string> </value>
</item>
<item>
<key> <string>_filepath</string> </key>
......@@ -108,7 +103,7 @@ bW9kdWxlPgEAAABzAAAAAA==</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>workflow_id</string> </value>
<value> <string>wf_id</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
......@@ -134,16 +129,16 @@ bW9kdWxlPgEAAABzAAAAAA==</string> </value>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>workflow_id</string>
<string>wf_id</string>
<string>Products.CMFCore.utils</string>
<string>getToolByName</string>
<string>_getattr_</string>
<string>context</string>
<string>N_</string>
<string>_getitem_</string>
<string>context</string>
<string>wf</string>
<string>item_list</string>
<string>_getiter_</string>
<string>_getattr_</string>
<string>state</string>
</tuple>
</value>
......
......@@ -23,16 +23,7 @@
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<dictionary>
<item>
<key> <string>yo</string> </key>
<value>
<list>
<string>Owner</string>
</list>
</value>
</item>
</dictionary>
<none/>
</value>
</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
CgB8BQCDAQBEXXEAfQsAdAAAdAYAZA0AgwIAfAsAgwEAdAoAAoMBAFwCAH0MAH0NAHQAAHQGAGQO
AIMCAHQAAGQEAGQFAIMCAHwMAHwNAGcCAIMBAIMBAH0OAHQAAHwJAGQPAIMCAHQAAHwOAGQQAIMC
AIMAAIMBAAFxrgBXdAAAfAMAZAsAgwIAZBEAfAcAdAAAZBIAZAUAgwIAfAkAgwEAZgIAFoMBAAFk
AABTKBMAAABOcwcAAABSRVFVRVNUcwgAAABSRVNQT05TRXMEAAAAdWlkc3MBAAAAL3MEAAAAam9p
bnMMAAAAYWJzb2x1dGVfdXJscwMAAABnZXRzBwAAAGZvcm1faWRzBAAAAHZpZXdpAAAAAHMIAAAA
cmVkaXJlY3RzNwAAACVzP3BvcnRhbF9zdGF0dXNfbWVzc2FnZT1ObytCdXNpbmVzcytUZW1wbGF0
ZStTcGVjaWZpZWRzIwAAAGRlY29kZVJlcG9zaXRvcnlCdXNpbmVzc1RlbXBsYXRlVWlkcwgAAABk
b3dubG9hZHMGAAAAYXBwZW5kcwUAAABnZXRJZHM9AAAAJXM/cG9ydGFsX3N0YXR1c19tZXNzYWdl
PUJ1c2luZXNzK1RlbXBsYXRlcytEb3dubG9hZGVkK0FzOislc3MCAAAALCsoDwAAAHMJAAAAX2dl
dGF0dHJfcwkAAABjb250YWluZXJzBwAAAFJFUVVFU1RzCAAAAFJFU1BPTlNFcwcAAABnZXRhdHRy
cwQAAAB1aWRzcwcAAABjb250ZXh0cwcAAAByZXRfdXJscwMAAABsZW5zBwAAAGlkX2xpc3RzCQAA
AF9nZXRpdGVyX3MDAAAAdWlkcwoAAAByZXBvc2l0b3J5cwIAAABpZHMCAAAAYnQoDwAAAHMJAAAA
X2dldGF0dHJfcwkAAABjb250YWluZXJzBwAAAFJFUVVFU1RzCAAAAFJFU1BPTlNFcwcAAABnZXRh
dHRycwQAAAB1aWRzcwcAAABjb250ZXh0cwcAAAByZXRfdXJscwMAAABsZW5zBwAAAGlkX2xpc3Rz
CQAAAF9nZXRpdGVyX3MDAAAAdWlkcwoAAAByZXBvc2l0b3J5cwIAAABpZHMCAAAAYnQoAAAAACgA
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 @@
</item>
<item>
<key> <string>count_method</string> </key>
<value> <string></string> </value>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>css_class</string> </key>
......@@ -468,7 +470,7 @@
<item>
<key> <string>list_method</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
......@@ -634,7 +636,26 @@
<dictionary>
<item>
<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>
</dictionary>
</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.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>
......@@ -44,6 +44,12 @@
</object>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
......@@ -81,6 +87,8 @@
<paragraphstyle name="ParaHeadLine3" align="RIGHT" fontname="Helvetica" fontsize="6"/>\n
\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="TableLastLine" parent="Normal" fontname="Helvetica-Oblique" fontsize="11" alignment="left" />\n
\n
......
......@@ -44,6 +44,12 @@
</object>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
......@@ -62,6 +68,7 @@
tal:define="group_list python: form.get_groups(include_empty=1);\n
field_errors python: request.get(\'field_errors\',{});\n
dummy python: request.set(\'here\',here); ">\n
\n
\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
......@@ -72,7 +79,7 @@
<tal:block tal:condition="python:field.meta_type != \'HiddenStringField\'">\n
<tr>\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 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
......
......@@ -44,13 +44,19 @@
</object>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<html>\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
<body> \n
\n
......@@ -105,8 +111,8 @@
column_id python: column_item[0]"> \n
<tal:block tal:condition="python: column_property is not None">\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
</td>\n
<para style="TableHeader" tal:content="python: here.translation_service.translate(\'ui\', str(column_property)).encode(\'utf8\')"/>\n
</td> \n
</tal:block>\n
<tal:block tal:condition="python: column_property is None">\n
<td tal:attributes="colwidth python:\'%.2fcm\' % float(column_width[column_id])">\n
......@@ -124,12 +130,13 @@
column_id python: column_item[0]"> \n
<tal:block tal:condition="python: column_property is not None">\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
</tal:block>\n
<tal:block tal:condition="python: column_property is None">\n
<td>\n
<para style="TableStandard" tal:content="python: \'\'" />\n
<para style="TableStandard" tal:content="python: \'\' " />\n
</td>\n
</tal:block>\n
</tal:block>\n
......
......@@ -44,6 +44,12 @@
</object>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
......
......@@ -90,6 +90,8 @@
<paragraphstyle name="ParaHeadLine3" align="RIGHT" fontname="Helvetica" fontsize="6"/>\n
\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="TableLastLine" parent="Normal" fontname="Helvetica-Oblique" fontsize="7" alignment="right" />\n
\n
......@@ -162,7 +164,7 @@
<pagetemplate id="FirstPage" nextid="FirstPage" startframe="content">\n
<static>\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
</static>\n
\n
......
......@@ -61,7 +61,7 @@
tal:define="global frame_width python:19"\n
metal:define-macro="master">\n
<title>List Print</title>\n
<author>Nexedi</author>\n
<author>ERP5</author>\n
<subject>Print Example</subject>\n
<content tal:define="group_list python: form.get_groups(include_empty=1);\n
field_errors python: request.get(\'field_errors\',{});\n
......@@ -71,7 +71,7 @@
<parameter>FirstPage</parameter>\n
</action>\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
\n
\n
......@@ -84,7 +84,7 @@
<tal:block tal:condition="python:field.meta_type != \'HiddenStringField\'">\n
<tr>\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 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
......@@ -92,10 +92,13 @@
<para style="TableStandard" tal:content="python: str(item)" />\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
</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
</tal:block>\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:
* 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