[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services - error_config.pt:1.1 configure.zcml:1.80 error.pt:1.9 error.py:1.7

Richard Jones richard at commonground.com.au
Sun Feb 8 20:44:07 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/browser/services
In directory cvs.zope.org:/tmp/cvs-serv12160

Modified Files:
	configure.zcml error.pt error.py 
Added Files:
	error_config.pt 
Log Message:
split error page into view and configure, with view being default


=== Added File Zope3/src/zope/app/browser/services/error_config.pt ===
<html metal:use-macro="views/standard_macros/page">
<head>
  <title metal:fill-slot="title" i18n:translate="">View Error Log Report</title>
</head>
<body>
<div metal:fill-slot="body">

  <p class="form-help" i18n:translate="">
    This page lists the exceptions that have occurred in this site
    recently.  You can configure how many exceptions should be kept
    and whether the exceptions should be copied to Zope's event log
    file(s).
  </p>

  <form action="edit.html" method="post"
        tal:define="props context/getProperties">
    <br />
    <div class="row">
      <div class="label" i18n:translate="">Number of exceptions to keep</div>
      <div class="field">
        <input type="text" name="keep_entries" size="40"
               tal:attributes="value props/keep_entries" />
      </div>
    </div>

    <div class="row">
      <div class="label" i18n:translate="">
        Copy exceptions to the event log
      </div>
      <div class="field">
        <input type="checkbox" name="copy_to_zlog"
               tal:attributes="checked props/copy_to_zlog" />
      </div>
    </div>

    <div class="row">
      <div class="label" i18n:translate="">Ignored exception types</div>
      <div class="field">
        <textarea name="ignored_exceptions:lines" cols="40" rows="3"
            tal:content="python: '\n'.join(props['ignored_exceptions'])" />
      </div>
    </div>
    <div class="separator"></div>

    <div class="row">
      <div class="controls">
        <input type="submit" name="submit" value="Save Changes"
                i18n:attributes="value save-changes-button"/>
      </div>
    </div>
  
  </form>

</div>
</body>
</html>


=== Zope3/src/zope/app/browser/services/configure.zcml 1.79 => 1.80 ===
--- Zope3/src/zope/app/browser/services/configure.zcml:1.79	Sat Feb  7 23:21:53 2004
+++ Zope3/src/zope/app/browser/services/configure.zcml	Sun Feb  8 20:44:05 2004
@@ -17,6 +17,8 @@
 
     <page name="index.html" template="error.pt"
           menu="zmi_views" title="Errors" />
+    <page name="configure.html" template="error_config.pt"
+          menu="zmi_views" title="Configure" />
     <page name="edit.html" attribute="updateProperties" />
     <page name="showEntry.html" template="errorentry.pt"/>
     <page name="showTextTBEntry.html" template="texttbentry.pt"/>


=== Zope3/src/zope/app/browser/services/error.pt 1.8 => 1.9 ===
--- Zope3/src/zope/app/browser/services/error.pt:1.8	Wed Oct 22 15:40:44 2003
+++ Zope3/src/zope/app/browser/services/error.pt	Sun Feb  8 20:44:05 2004
@@ -5,51 +5,6 @@
 <body>
 <div metal:fill-slot="body">
 
-  <p class="form-help" i18n:translate="">
-    This page lists the exceptions that have occurred in this site
-    recently.  You can configure how many exceptions should be kept
-    and whether the exceptions should be copied to Zope's event log
-    file(s).
-  </p>
-
-  <form action="edit.html" method="post"
-        tal:define="props context/getProperties">
-    <br />
-    <div class="row">
-      <div class="label" i18n:translate="">Number of exceptions to keep</div>
-      <div class="field">
-        <input type="text" name="keep_entries" size="40"
-               tal:attributes="value props/keep_entries" />
-      </div>
-    </div>
-
-    <div class="row">
-      <div class="label" i18n:translate="">
-        Copy exceptions to the event log
-      </div>
-      <div class="field">
-        <input type="checkbox" name="copy_to_zlog"
-               tal:attributes="checked props/copy_to_zlog" />
-      </div>
-    </div>
-
-    <div class="row">
-      <div class="label" i18n:translate="">Ignored exception types</div>
-      <div class="field">
-        <textarea name="ignored_exceptions:lines" cols="40" rows="3"
-            tal:content="python: '\n'.join(props['ignored_exceptions'])" />
-      </div>
-    </div>
-    <div class="separator"></div>
-
-    <div class="row">
-      <div class="controls">
-        <input type="submit" name="submit" value="Save Changes"
-                i18n:attributes="value save-changes-button"/>
-      </div>
-    </div>
-    <div class="separator"></div>
-
     <h3 i18n:translate="">Exception Log (most recent first)</h3>
 
     <div tal:define="entries context/getLogEntries">
@@ -87,8 +42,6 @@
       </table>
  
     </div>
-  
-  </form>
 
   <form action="index.html" method="get">
     <div class="row">


=== Zope3/src/zope/app/browser/services/error.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/browser/services/error.py:1.6	Thu Aug  7 13:41:03 2003
+++ Zope3/src/zope/app/browser/services/error.py	Sun Feb  8 20:44:05 2004
@@ -26,4 +26,4 @@
         if copy_to_zlog is None:
             copy_to_zlog = 0
         errorLog.setProperties(keep_entries, copy_to_zlog, ignored_exceptions)
-        return self.request.response.redirect('index.html')
+        return self.request.response.redirect('@@configure.html')




More information about the Zope3-Checkins mailing list