[Erp5-report] r9998 - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style: SkinTemplate...

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Sep 15 15:43:00 CEST 2006


Author: vincent
Date: Fri Sep 15 15:42:57 2006
New Revision: 9998

URL: http://svn.erp5.org?rev=9998&view=rev
Log:
Overload the standard error message to make it lightweight. See #488.

Added:
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/standard_error_message.xml
Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision

Added: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/standard_error_message.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/standard_error_message.xml?rev=9998&view=auto
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/standard_error_message.xml (added)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/standard_error_message.xml Fri Sep 15 15:42:57 2006
@@ -1,0 +1,127 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <tuple>
+          <string>Products.PageTemplates.ZopePageTemplate</string>
+          <string>ZopePageTemplate</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>
+                            <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>_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">Error</title>\n
+  </head>\n
+  <body>\n
+    <div tal:condition="options/error_message"\n
+         tal:content="structure options/error_message" />\n
+    <div tal:condition="not: options/error_message">\n
+      <h2 i18n:translate="">Site Error</h2>\n
+      <p i18n:translate="">An error was encountered while publishing this resource.</p>\n
+      <p>\n
+        <strong i18n:translate="">\n
+          Error Type:\n
+          <span tal:replace="options/error_type" i18n:name="error_type" />\n
+        </strong>\n
+        <br />\n
+        <strong i18n:translate="">\n
+          Error Value:\n
+          <span tal:replace="options/error_value" i18n:name="error_value" />\n
+        </strong>\n
+        <br />\n
+      </p>\n
+      <hr noshade="noshade" />\n
+      <p i18n:translate="">Troubleshooting Suggestions</p>\n
+      <div tal:condition="python: options[\'error_type\'] in (\'KeyError\', \'NameError\')">\n
+        <ul>\n
+          <li i18n:translate="">This resource may be trying to reference a nonexistent object or variable\n
+            <strong>\n
+              <span tal:replace="options/error_value"\n
+                    i18n:name="error_value" />\n
+            </strong>.\n
+          </li>\n
+          <li i18n:translate="">The URL may be incorrect.</li>\n
+          <li i18n:translate="">The parameters passed to this resource may be incorrect.</li>\n
+          <li i18n:translate="">A resource that this resource relies on may be encountering an error.</li>\n
+        </ul>\n
+      </div>\n
+      <p i18n:translate="">For more detailed information about the error, please refer to the HTML source for this page.</p>\n
+      <p i18n:translate="">If the error persists please contact the site maintainer. Thank you for your patience.</p>\n
+    </div>\n
+    <div tal:condition="options/error_log_url | nothing">\n
+      <hr noshade="noshade" />\n
+      <a tal:attributes="href options/error_log_url"\n
+         i18n:translate="">Show Error Log Entry</a>\n
+    </div>\n
+  </body>\n
+</html>\n
+
+
+]]></string> </value>
+        </item>
+        <item>
+            <key> <string>content_type</string> </key>
+            <value> <string>text/html</string> </value>
+        </item>
+        <item>
+            <key> <string>expand</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>standard_error_message</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string></string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision?rev=9998&r1=9997&r2=9998&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision Fri Sep 15 15:42:57 2006
@@ -1,1 +1,1 @@
-181
+191




More information about the Erp5-report mailing list