diff --git a/bt5/erp5_pdf_style/SkinTemplateItem/portal_skins/erp5_pdf_style/ListBox_getColumnWithDict.xml b/bt5/erp5_pdf_style/SkinTemplateItem/portal_skins/erp5_pdf_style/ListBox_getColumnWithDict.xml index 4f17ba50b69f4d22181c14dce508204c62b52c39..70fe2379a875f3075139ab39b895a00806352983 100644 --- a/bt5/erp5_pdf_style/SkinTemplateItem/portal_skins/erp5_pdf_style/ListBox_getColumnWithDict.xml +++ b/bt5/erp5_pdf_style/SkinTemplateItem/portal_skins/erp5_pdf_style/ListBox_getColumnWithDict.xml @@ -68,7 +68,9 @@ </item> <item> <key> <string>_body</string> </key> - <value> <string># if REQUEST.other contains ${form_id}/${listbox_id}/ListBox_getColumnWithDict\n + <value> <string>from DateTime import DateTime\n +\n +# if REQUEST.other contains ${form_id}/${listbox_id}/ListBox_getColumnWithDict\n # magic key, this will be used as column width, instead of calculating.\n if listbox is not None:\n cache = context.REQUEST.other.get(\n @@ -151,7 +153,9 @@ for listboxline in listboxline_list:\n col_count = 0\n for column_id, column_property in listboxline.getColumnItemList():\n if isinstance(column_property, number):\n - string_property = "%s++++++" % (column_property)\n + string_property = "%s+++" % (column_property)\n + elif isinstance(column_property, DateTime):\n + string_property = column_property.strftime(\'%Y/%m/%d++\')\n else:\n string_property = str(column_property or \'\')\n if listboxline.isStatLine():\n @@ -224,6 +228,7 @@ return result\n <string>frame_width</string> <string>section_width</string> <string>listbox</string> + <string>DateTime</string> <string>None</string> <string>_getattr_</string> <string>context</string> diff --git a/bt5/erp5_pdf_style/bt/revision b/bt5/erp5_pdf_style/bt/revision index 978b4e8e518d1242cbf102a1bebdb52e41705102..368f89ceef179cc546403ac0d5ef1d0e4b340447 100644 --- a/bt5/erp5_pdf_style/bt/revision +++ b/bt5/erp5_pdf_style/bt/revision @@ -1 +1 @@ -26 \ No newline at end of file +28 \ No newline at end of file