diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Base_getDescription.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Base_getDescription.xml new file mode 100644 index 0000000000000000000000000000000000000000..2738319e850ac96792961c0e13c76eaf160d9392 --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Base_getDescription.xml @@ -0,0 +1,81 @@ +<?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>"""\n + Return a description (usually for Web cases like RSS) of arbitrary types.\n + XXX: We need to extend and generalize Description property.\n +"""\n +portal_type = context.getPortalType()\n +if portal_type==\'Discussion Thread\':\n + # take description from first Discussion post\n + discussion_post_list = context.objectValues()\n + if len(discussion_post_list):\n + return discussion_post_list[0].getTextContent()\n +if portal_type==\'Discussion Post\':\n + return context.getTextContent()\n +# by default use getDescription\n +if getattr(context, \'getDescription\', None) is not None:\n + return context.getDescription()\n +</string> </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Base_getDescription</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSection_viewContentListAsRSS/listbox.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSection_viewContentListAsRSS/listbox.xml index dfa0729fd5975694cbff8f4cf0529ef9958ab499..64e0c17da668cbb0c9ef6071a49207e0c51ce101 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSection_viewContentListAsRSS/listbox.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSection_viewContentListAsRSS/listbox.xml @@ -13,7 +13,9 @@ <string>columns</string> <string>count_method</string> <string>hide_rows_on_no_search_criterion</string> + <string>lines</string> <string>list_method</string> + <string>selection_name</string> <string>sort</string> </list> </value> @@ -56,6 +58,14 @@ <key> <string>tales</string> </key> <value> <dictionary> + <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>field_id</string> </key> <value> <string></string> </value> @@ -64,6 +74,28 @@ <key> <string>form_id</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>hide_rows_on_no_search_criterion</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>lines</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>list_method</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>target</string> </key> <value> <string></string> </value> @@ -96,11 +128,11 @@ <string>link</string> </tuple> <tuple> - <string>description</string> + <string>Base_getDescription</string> <string>description</string> </tuple> <tuple> - <string>absolute_url</string> + <string>link</string> <string>guid</string> </tuple> </list> @@ -122,18 +154,26 @@ <key> <string>hide_rows_on_no_search_criterion</string> </key> <value> <int>0</int> </value> </item> + <item> + <key> <string>lines</string> </key> + <value> <int>20</int> </value> + </item> <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> + <key> <string>selection_name</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>sort</string> </key> <value> <list> <tuple> - <string>creation_date</string> + <string>modification_date</string> <string>descending</string> </tuple> </list> @@ -150,6 +190,19 @@ </pickle> </record> <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: int(here.REQUEST.get(\'size\', preferences.getPreference(\'preferred_listbox_list_mode_line_count\', 30)))</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> <pickle> <global name="Method" module="Products.Formulator.MethodField"/> </pickle> diff --git a/bt5/erp5_web/bt/revision b/bt5/erp5_web/bt/revision index 306d91c91f0ed2141746a8b6f0d1906fbb7aeb2b..d673a7a76b9aaaa87474773f9dfb608b0cf8497c 100644 --- a/bt5/erp5_web/bt/revision +++ b/bt5/erp5_web/bt/revision @@ -1 +1 @@ -1091 \ No newline at end of file +1092 \ No newline at end of file