[Zope-Checkins] CVS: Packages/OFS/standard - index_html.dtml:1.2 standard_error_message.dtml:1.2 standard_html_footer.dtml:1.2 standard_html_header.dtml:1.2 standard_template.pt:1.2

Evan Simpson evan@zope.com
Mon, 26 Nov 2001 11:07:08 -0500


Update of /cvs-repository/Packages/OFS/standard
In directory cvs.zope.org:/tmp/cvs-serv20995/standard

Added Files:
	index_html.dtml standard_error_message.dtml 
	standard_html_footer.dtml standard_html_header.dtml 
	standard_template.pt 
Log Message:
Separate and generalize creation of standard objects.


=== Packages/OFS/standard/index_html.dtml 1.1 => 1.2 ===


=== Packages/OFS/standard/standard_error_message.dtml 1.1 => 1.2 ===
+
+<dtml-if error_message>
+ <dtml-var error_message>
+<dtml-else>
+
+  <h2>Site Error</h2>
+
+  <p>An error was encountered while publishing this resource.
+  </p>
+  
+  <p>
+  <strong>Error Type: &dtml-error_type;</strong><br />
+  <strong>Error Value: &dtml-error_value;</strong><br /> 
+  </P>
+ 
+  <hr noshade="noshade" />
+ 
+  <p>Troubleshooting Suggestions</p>
+
+  <ul>
+  <dtml-if "error_type in ('KeyError','NameError')">
+  <li>This resource may be trying to reference a
+  nonexistent object or variable <strong>&dtml-error_value;</strong>.</li>
+  </dtml-if>
+  <li>The URL may be incorrect.</li>
+  <li>The parameters passed to this resource may be incorrect.</li>
+  <li>A resource that this resource relies on may be encountering
+      an error.</li>
+  </ul>
+
+  <p>For more detailed information about the error, please
+  refer to the HTML source for this page.
+  </p>
+
+  <p>If the error persists please contact the site maintainer.
+  Thank you for your patience.
+  </p>
+
+  <dtml-comment>
+   Here, events like logging and other actions may also be performed, such as
+   sending mail automatically to the administrator.
+  </dtml-comment>
+
+</dtml-if>
+
+<dtml-var standard_html_footer>


=== Packages/OFS/standard/standard_html_footer.dtml 1.1 => 1.2 ===
+</html>


=== Packages/OFS/standard/standard_html_header.dtml 1.1 => 1.2 ===
+  <head><title>&dtml-title_or_id;</title></head>
+  <body bgcolor="#FFFFFF">
\ No newline at end of file


=== Packages/OFS/standard/standard_template.pt 1.1 => 1.2 ===
+  <head>
+   <metal:block define-slot="head">
+   <title tal:content="template/title">The Title</title>
+   </metal:block>
+  </head>
+  <body> 
+    <div metal:define-slot="body">
+    This is where the page's body text goes.
+    </div>
+  </body>
+</html>