[Erp5-report] r38437 ivan - in /erp5/trunk/bt5/erp5_web: SkinTemplateItem/portal_skins/erp5...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Sep 17 10:29:04 CEST 2010
Author: ivan
Date: Fri Sep 17 10:29:01 2010
New Revision: 38437
URL: http://svn.erp5.org?rev=38437&view=rev
Log:
Use unified listbox rather than a dedicated listbox PT renderer for "Latest content" gadget.
Apply CSS convention.
Added:
erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/Document_getSummaryAsHTML.xml
erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSection_viewLatestDocumentListGadget/listbox_getSummaryAsHTML.xml
Modified:
erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSection_viewLatestDocumentListGadget.xml
erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSection_viewLatestDocumentListGadget/listbox.xml
erp5/trunk/bt5/erp5_web/bt/revision
Added: erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/Document_getSummaryAsHTML.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/Document_getSummaryAsHTML.xml?rev=38437&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/Document_getSummaryAsHTML.xml (added)
+++ erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/Document_getSummaryAsHTML.xml [utf8] Fri Sep 17 10:29:01 2010
@@ -0,0 +1,97 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <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_subpath</string> </key>
+ <value> <string>traverse_subpath</string> </value>
+ </item>
+ </dictionary>
+ </value>
+ </item>
+ </dictionary>
+ </state>
+ </object>
+ </value>
+ </item>
+ <item>
+ <key> <string>_text</string> </key>
+ <value> <string encoding="cdata"><![CDATA[
+
+<tal:block \n
+ tal:define="document_url here/absolute_url;\n
+ thumbnail_url here/Base_getThumbnailAbsoluteUrl;\n
+ display string:thumbnail;\n
+ icon here/getIcon;\n
+ title here/getTitle;\n
+ modification_date python: here.getModificationDate();\n
+ format python: here.getObject().portal_preferences.getPreference(\'preferred_image_format\', \'png\');\n
+ description python: here.getDescription();\n
+ box_relative_url python: request.get(\'box_relative_url\', \'\');\n
+ dom_id python: (\'%s-%s\' %(box_relative_url, here.getRelativeUrl()))">\n
+ <div class="document-gadget-quick-preview">\n
+ <div class="teaser"\n
+ tal:attributes="onclick string:toggle(\'${dom_id}\');">\n
+ <img alt="Icon" class="icon"\n
+ tal:attributes="src icon" />\n
+\n
+ <span alt="Link" class="document-title"\n
+ tal:content="title"/>\n
+\n
+ <span class="modification-date"\n
+ tal:content="modification_date"/>\n
+\n
+ </div>\n
+\n
+ <!-- Hidden thumbnail & description -->\n
+ <div class="body" style="display:none;"\n
+ tal:attributes="id dom_id">\n
+ <a target="_blank" \n
+ tal:attributes="href string:${document_url}/view">\n
+ <img alt="Thumbnail" class="document-thumbnail"\n
+ tal:condition="python: thumbnail_url is not None"\n
+ tal:attributes="src string:${thumbnail_url}/index_html?display=${display}&format=${format}"/>\n
+ <br/>\n
+ <span class="description"\n
+ tal:content="description"/>\n
+ </a>\n
+ <br/>\n
+ <a target="_blank" \n
+ class="document-link"\n
+ alt="Original Document"\n
+ i18n:translate="" i18n:domain="ui" i18n:attributes="alt"\n
+ tal:attributes="href string:${document_url}/view">Show original item</a>\n
+ </div>\n
+ </div>\n
+ \n
+</tal:block>\n
+
+
+]]></string> </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>Document_getSummaryAsHTML</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Modified: erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSection_viewLatestDocumentListGadget.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSection_viewLatestDocumentListGadget.xml?rev=38437&r1=38436&r2=38437&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSection_viewLatestDocumentListGadget.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSection_viewLatestDocumentListGadget.xml [utf8] Fri Sep 17 10:29:01 2010
@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
- <tuple>
- <global name="ERP5Form" module="Products.ERP5Form.Form"/>
- <tuple/>
- </tuple>
+ <global name="ERP5Form" module="Products.ERP5Form.Form"/>
</pickle>
<pickle>
<dictionary>
@@ -76,7 +73,6 @@
<value>
<list>
<string>listbox</string>
- <string>listbox_modification_date</string>
</list>
</value>
</item>
@@ -84,14 +80,7 @@
<key> <string>hidden</string> </key>
<value>
<list>
- <string>your_rss_link</string>
- <string>listbox_field_title</string>
- <string>listbox_field_link</string>
- <string>listbox_field_md5</string>
- <string>listbox_field_others_links</string>
- <string>listbox_field_img</string>
- <string>listbox_field_content</string>
- <string>listbox_field_date</string>
+ <string>listbox_getSummaryAsHTML</string>
</list>
</value>
</item>
Modified: erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSection_viewLatestDocumentListGadget/listbox.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSection_viewLatestDocumentListGadget/listbox.xml?rev=38437&r1=38436&r2=38437&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSection_viewLatestDocumentListGadget/listbox.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSection_viewLatestDocumentListGadget/listbox.xml [utf8] Fri Sep 17 10:29:01 2010
@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
- <tuple>
- <global name="ListBox" module="Products.ERP5Form.ListBox"/>
- <tuple/>
- </tuple>
+ <global name="ListBox" module="Products.ERP5Form.ListBox"/>
</pickle>
<pickle>
<dictionary>
@@ -359,52 +356,8 @@
<value>
<list>
<tuple>
- <string>id</string>
- <string>id</string>
- </tuple>
- <tuple>
- <string>reference</string>
- <string>Reference</string>
- </tuple>
- <tuple>
- <string>translated_validation_state_title</string>
- <string>Validation State</string>
- </tuple>
- <tuple>
- <string>translated_portal_type</string>
- <string>Type</string>
- </tuple>
- <tuple>
- <string>modification_date</string>
- <string>Modification Date</string>
- </tuple>
- <tuple>
- <string>field_title</string>
- <string>title</string>
- </tuple>
- <tuple>
- <string>field_date</string>
- <string>date</string>
- </tuple>
- <tuple>
- <string>field_content</string>
- <string>content</string>
- </tuple>
- <tuple>
- <string>field_img</string>
- <string>thumbnail</string>
- </tuple>
- <tuple>
- <string>field_link</string>
- <string>link</string>
- </tuple>
- <tuple>
- <string>field_others_links</string>
- <string>others_links</string>
- </tuple>
- <tuple>
- <string>field_md5</string>
- <string>md5</string>
+ <string>getSummaryAsHTML</string>
+ <string>Summary</string>
</tuple>
</list>
</value>
@@ -418,6 +371,10 @@
<value> <string>hidden_label gadget-latest-documents</string> </value>
</item>
<item>
+ <key> <string>default_display_style</string> </key>
+ <value> <string>table</string> </value>
+ </item>
+ <item>
<key> <string>default_params</string> </key>
<value>
<list/>
@@ -428,6 +385,12 @@
<value> <string></string> </value>
</item>
<item>
+ <key> <string>display_style_list</string> </key>
+ <value>
+ <list/>
+ </value>
+ </item>
+ <item>
<key> <string>domain_root_list</string> </key>
<value>
<list/>
@@ -446,40 +409,8 @@
<value>
<list>
<tuple>
- <string>creation_date</string>
- <string>Creation Date</string>
- </tuple>
- <tuple>
- <string>modification_date</string>
- <string>Modification Date</string>
- </tuple>
- <tuple>
- <string>field_img</string>
- <string>field_img</string>
- </tuple>
- <tuple>
- <string>field_content</string>
- <string>field_content</string>
- </tuple>
- <tuple>
- <string>field_title</string>
- <string>field_title</string>
- </tuple>
- <tuple>
- <string>field_link</string>
- <string>field_link</string>
- </tuple>
- <tuple>
- <string>field_md5</string>
- <string>field_md5</string>
- </tuple>
- <tuple>
- <string>field_others_links</string>
- <string>field_others_links</string>
- </tuple>
- <tuple>
- <string>field_date</string>
- <string>field_date</string>
+ <string>getSummaryAsHTML</string>
+ <string>Summary</string>
</tuple>
</list>
</value>
@@ -499,6 +430,10 @@
</value>
</item>
<item>
+ <key> <string>global_search_column</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
<key> <string>hidden</string> </key>
<value> <int>0</int> </value>
</item>
@@ -527,8 +462,12 @@
</value>
</item>
<item>
+ <key> <string>page_navigation_mode</string> </key>
+ <value> <string>slider</string> </value>
+ </item>
+ <item>
<key> <string>page_template</string> </key>
- <value> <string>ListBox_asListStyleHTML</string> </value>
+ <value> <string>ListBox_asHTML</string> </value>
</item>
<item>
<key> <string>portal_types</string> </key>
@@ -557,20 +496,7 @@
<item>
<key> <string>search_columns</string> </key>
<value>
- <list>
- <tuple>
- <string>reference</string>
- <string>Reference</string>
- </tuple>
- <tuple>
- <string>translated_validation_state_title</string>
- <string>Validation State</string>
- </tuple>
- <tuple>
- <string>translated_portal_type</string>
- <string>Type</string>
- </tuple>
- </list>
+ <list/>
</value>
</item>
<item>
@@ -599,24 +525,7 @@
<item>
<key> <string>sort_columns</string> </key>
<value>
- <list>
- <tuple>
- <string>reference</string>
- <string>Reference</string>
- </tuple>
- <tuple>
- <string>modification_date</string>
- <string>Modification Date</string>
- </tuple>
- <tuple>
- <string>translated_validation_state_title</string>
- <string>Validation State</string>
- </tuple>
- <tuple>
- <string>translated_portal_type</string>
- <string>Type</string>
- </tuple>
- </list>
+ <list/>
</value>
</item>
<item>
@@ -630,6 +539,12 @@
<value> <string></string> </value>
</item>
<item>
+ <key> <string>style_columns</string> </key>
+ <value>
+ <list/>
+ </value>
+ </item>
+ <item>
<key> <string>title</string> </key>
<value> <string>Latest Documents</string> </value>
</item>
@@ -644,11 +559,7 @@
<value>
<list>
<tuple>
- <string>field_date</string>
- <string></string>
- </tuple>
- <tuple>
- <string>field_img</string>
+ <string>getSummaryAsHTML</string>
<string></string>
</tuple>
</list>
@@ -662,10 +573,7 @@
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
- <tuple>
- <global name="TALESMethod" module="Products.Formulator.TALESField"/>
- <tuple/>
- </tuple>
+ <global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
@@ -678,10 +586,7 @@
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
- <tuple>
- <global name="Method" module="Products.Formulator.MethodField"/>
- <tuple/>
- </tuple>
+ <global name="Method" module="Products.Formulator.MethodField"/>
</pickle>
<pickle>
<dictionary>
Added: erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSection_viewLatestDocumentListGadget/listbox_getSummaryAsHTML.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSection_viewLatestDocumentListGadget/listbox_getSummaryAsHTML.xml?rev=38437&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSection_viewLatestDocumentListGadget/listbox_getSummaryAsHTML.xml (added)
+++ erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSection_viewLatestDocumentListGadget/listbox_getSummaryAsHTML.xml [utf8] Fri Sep 17 10:29:01 2010
@@ -0,0 +1,307 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <global name="EditorField" module="Products.ERP5Form.EditorField"/>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>listbox_getSummaryAsHTML</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>text_editor</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>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>
+ <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+ </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>text_editor</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>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>0</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>text_editor</string> </key>
+ <value> <string>text_area</string> </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string>Summary</string> </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>
+ <item>
+ <key> <string>width</string> </key>
+ <value> <int>40</int> </value>
+ </item>
+ </dictionary>
+ </value>
+ </item>
+ </dictionary>
+ </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: cell.Document_getSummaryAsHTML()</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Modified: erp5/trunk/bt5/erp5_web/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/bt/revision?rev=38437&r1=38436&r2=38437&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_web/bt/revision [utf8] Fri Sep 17 10:29:01 2010
@@ -1 +1 @@
-972
\ No newline at end of file
+973
\ No newline at end of file
More information about the Erp5-report
mailing list