Skip to content

Commit

Permalink
Require ManageServices to get errors action.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Mar 2, 2005
0 parents commit 5572a81
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions browser/configure.zcml
@@ -0,0 +1,54 @@
<zope:configure
xmlns:zope="http://namespaces.zope.org/zope"
xmlns="http://namespaces.zope.org/browser">

<pages
for="*"
permission="zope.ManageContent"
class=".ErrorRedirect" >

<page name="errorRedirect.html" attribute="action" />
</pages>

<menuItem
for="*"
menu="zmi_actions"
title="Errors"
action="@@errorRedirect.html"
permission="zope.ManageServices" />

<!--Error Logging Utility -->

<pages
for="zope.app.error.interfaces.IErrorReportingUtility"
permission="zope.ManageServices"
class=".EditErrorLog">

<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"/>
</pages>

<addMenuItem
class="zope.app.error.error.ErrorReportingUtility"
title="Error Logging Utility"
description="Error Reporting Utility for Logging Errors"
permission="zope.ManageServices" />

<tool
interface="..interfaces.IErrorReportingUtility"
title="Error Reporting"
description="Component to record all uncaught errors and exceptions."
unique="true"
/>

<icon name="zmi_icon"
for="zope.app.error.interfaces.IErrorReportingUtility"
file="error.gif" />

</zope:configure>

0 comments on commit 5572a81

Please sign in to comment.