diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_crm/WebSection_getEventResourceItemList.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_crm/WebSection_getEventResourceItemList.xml new file mode 100644 index 0000000000000000000000000000000000000000..6561a0d79851a413b5ce80429a88e6b8f65d5d7f --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_crm/WebSection_getEventResourceItemList.xml @@ -0,0 +1,72 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string>"""Create a temp event then returns\n +Event_getResourceItemList to display list of supported Resources of events.\n +"""\n +from Products.ERP5Type.Document import newTempEvent\n +event = newTempEvent(context, \'temp_event\')\n +return event.Event_getResourceItemList()\n +</string> </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>WebSection_getEventResourceItemList</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_crm/WebSection_viewAddWebMessageDialog/your_resource.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_crm/WebSection_viewAddWebMessageDialog/your_resource.xml index dc8fc4aa595b589c0302a13f8a4beb21447f3f51..71372a7a6e8574a2ef6686c51d86ce1ca8345251 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_crm/WebSection_viewAddWebMessageDialog/your_resource.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_crm/WebSection_viewAddWebMessageDialog/your_resource.xml @@ -10,6 +10,7 @@ <key> <string>delegated_list</string> </key> <value> <list> + <string>enabled</string> <string>first_item</string> <string>items</string> <string>title</string> @@ -54,10 +55,20 @@ <key> <string>tales</string> </key> <value> <dictionary> + <item> + <key> <string>enabled</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>first_item</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>form_id</string> </key> <value> <string></string> </value> @@ -65,13 +76,17 @@ <item> <key> <string>items</string> </key> <value> - <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> </value> </item> <item> <key> <string>target</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> </dictionary> </value> </item> @@ -79,6 +94,10 @@ <key> <string>values</string> </key> <value> <dictionary> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string>my_radio_field</string> </value> @@ -119,7 +138,24 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python:[x for x in here.getPortalObject().portal_categories.resource.event.getCategoryChildTranslatedTitleItemList(local_sort_id=\'int_index\', checked_permission=\'View\') if x[0]]</string> </value> + <value> <string encoding="cdata"><![CDATA[ + +python: here.WebSection_getEventResourceItemList()[0] == (\'\', \'\') and (len(here.WebSection_getEventResourceItemList()) > 1) or (here.WebSection_getEventResourceItemList()[0] != (\'\', \'\') and len(here.WebSection_getEventResourceItemList())) + +]]></string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: here.WebSection_getEventResourceItemList()[0] == (\'\', \'\') and here.WebSection_getEventResourceItemList()[1:] or here.WebSection_getEventResourceItemList()</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_web/bt/revision b/bt5/erp5_web/bt/revision index 26344f96b052ff2c841160e599529db1900d22e6..67d892c80f49383b62e4332582a9483d07de7831 100644 --- a/bt5/erp5_web/bt/revision +++ b/bt5/erp5_web/bt/revision @@ -1 +1 @@ -1022 \ No newline at end of file +1028 \ No newline at end of file