[Checkins] SVN: zamplugin.error/trunk/ Moved sample configuration to app.zcml

Roger Ineichen roger at projekt01.ch
Sun Apr 13 18:27:06 EDT 2008


Log message for revision 85343:
  Moved sample configuration to app.zcml
  Removed svn:externals
  Prepare for release

Changed:
  U   zamplugin.error/trunk/CHANGES.txt
  U   zamplugin.error/trunk/buildout.cfg
  D   zamplugin.error/trunk/externals/
  U   zamplugin.error/trunk/setup.py
  U   zamplugin.error/trunk/src/zamplugin/error/README.txt
  A   zamplugin.error/trunk/src/zamplugin/error/app.zcml
  U   zamplugin.error/trunk/src/zamplugin/error/ftesting.zcml

-=-
Modified: zamplugin.error/trunk/CHANGES.txt
===================================================================
--- zamplugin.error/trunk/CHANGES.txt	2008-04-13 22:11:47 UTC (rev 85342)
+++ zamplugin.error/trunk/CHANGES.txt	2008-04-13 22:27:06 UTC (rev 85343)
@@ -2,7 +2,7 @@
 CHANGES
 =======
 
-Version 0.5.0 (unreleased)
+Version 0.5.0 (2008-04-14)
 -------------------------
 
 - Initial Release

Modified: zamplugin.error/trunk/buildout.cfg
===================================================================
--- zamplugin.error/trunk/buildout.cfg	2008-04-13 22:11:47 UTC (rev 85342)
+++ zamplugin.error/trunk/buildout.cfg	2008-04-13 22:27:06 UTC (rev 85343)
@@ -1,22 +1,30 @@
 [buildout]
 develop = .
-          externals/z3c.menu.ready2go
-          externals/zam.api
-          externals/zam.skin
+parts = logs app var test checker coverage-test coverage-report
 
-parts = logs app var test checker coverage
 
 [test]
 recipe = zc.recipe.testrunner
-eggs = zamplugin.error [app, test]
+eggs = zam.skin [app]
+       zamplugin.error [test]
 
+
 [checker]
 recipe = lovely.recipe:importchecker
 path = src/zamplugin/error
 
-[coverage]
+
+[coverage-test]
+recipe = zc.recipe.testrunner
+eggs = zamplugin.error [test]
+defaults = ['--coverage', '../../coverage']
+
+
+[coverage-report]
 recipe = zc.recipe.egg
 eggs = z3c.coverage
+scripts = coverage=coverage-report
+arguments = ('coverage', 'coverage/report')
 
 
 [logs]
@@ -26,7 +34,8 @@
 
 [app]
 recipe = z3c.recipe.dev:app
-eggs = zamplugin.error [app]
+eggs = zam.skin [app]
+       zamplugin.error
 server = zserver
 zope.conf =
   ${var:zconfig}
@@ -72,23 +81,15 @@
   <!-- use app configuration from zam.api -->
   <include package="zam.skin" file="app.zcml" />
 
-  <!-- exclude will prevent from include -->
-  <exclude package="zope.app.error.browser" />
+  <!-- use app configuration from zamplugin.control -->
+  <include package="zamplugin.error" file="app.zcml" />
 
-  <!-- zope app package configuration -->
-  <include package="zope.app.error" />
-
-
-  <!-- zam skin configuration -->
-  <include package="zamplugin.error" />
-
   <!-- load other zcml files -->
   <include file="securitypolicy.zcml" />
   <include file="principals.zcml" />
 
   </configure>
 
-
 principals.zcml = 
   <unauthenticatedPrincipal
       id="lovelybooks.anybody"

Modified: zamplugin.error/trunk/setup.py
===================================================================
--- zamplugin.error/trunk/setup.py	2008-04-13 22:11:47 UTC (rev 85342)
+++ zamplugin.error/trunk/setup.py	2008-04-13 22:27:06 UTC (rev 85343)
@@ -56,31 +56,6 @@
             'zope.app.testing',
             'zope.testbrowser',
             ],
-        app = [
-            'z3c.baseregistry',
-            'z3c.form',
-            'z3c.formui',
-            'z3c.layer.pagelet',
-            'z3c.layer.ready2go',
-            'z3c.menu.ready2go',
-            'z3c.pagelet',
-            'z3c.zrtresource',
-            'zam.api',
-            'zam.skin',
-            'zc.configuration',
-            'zope.app.component',
-            'zope.app.http',
-            'zope.app.intid',
-            'zope.app.publisher',
-            'zope.app.securitypolicy',
-            'zope.app.server',
-            'zope.app.twisted',
-            'zope.configuration',
-            'zope.interface',
-            'zope.publisher',
-            'zope.traversing',
-            'zope.viewlet',
-            ],
         ),
     install_requires = [
         'setuptools',

Modified: zamplugin.error/trunk/src/zamplugin/error/README.txt
===================================================================
--- zamplugin.error/trunk/src/zamplugin/error/README.txt	2008-04-13 22:11:47 UTC (rev 85342)
+++ zamplugin.error/trunk/src/zamplugin/error/README.txt	2008-04-13 22:27:06 UTC (rev 85343)
@@ -2,24 +2,56 @@
 README
 ======
 
-This package contains the Zope Application Management skin. This skin supports 
-a modular application management UI without any dependency to the old skin
-implementations. The goal of this new skin is to support a more modular
-concept which allows us to register only what we need.
+This package provides the error utility pages. The zam.skin is used as basic 
+skin for this test.
 
-Login as manager first:
+First login as manager:
 
   >>> from zope.testbrowser.testing import Browser
-  >>> manager = Browser()
-  >>> manager.addHeader('Authorization', 'Basic mgr:mgrpw')
+  >>> mgr = Browser()
+  >>> mgr.addHeader('Authorization', 'Basic mgr:mgrpw')
 
-Check if we can access the page.html view which is registred in the
-ftesting.zcml file with our skin:
+And go to the plugins page at the site root:
 
-  >>> manager = Browser()
-  >>> manager.handleErrors = False
-  >>> manager.addHeader('Authorization', 'Basic mgr:mgrpw')
-  >>> skinURL = 'http://localhost/++skin++ZAM/index.html'
-  >>> manager.open(skinURL)
-  >>> manager.url
-  'http://localhost/++skin++ZAM/index.html'
+  >>> rootURL = 'http://localhost/++skin++ZAM'
+  >>> mgr.open(rootURL + '/plugins.html')
+  >>> mgr.url
+  'http://localhost/++skin++ZAM/plugins.html'
+
+and install the error plugins:
+
+  >>> mgr.getControl(name='zamplugin.error.buttons.install').click()
+  >>> print mgr.contents
+  <!DOCTYPE ...
+  ...
+    <h1>ZAM Plugin Management</h1>
+    <fieldset id="pluginManagement">
+      <strong class="installedPlugin">Error reporting utility</strong>
+      <div class="description">ZAM Error reporting utility.</div>
+  ...
+
+Now you can see that we can access the error utility at the site root:
+
+  >>> mgr.open(rootURL + '/++etc++site/default/RootErrorReportingUtility')
+  >>> print mgr.contents
+  <!DOCTYPE ...
+  ...
+  <div id="content">
+    <div>
+    <h3>Exception Log (most recent first)</h3>
+    <p>This page lists the exceptions that have occurred in this
+      site recently.</p>
+    <div>
+      <em> No exceptions logged. </em>
+  <BLANKLINE>
+    </div>
+    <!-- just offer reload button -->
+    <form action="." method="get">
+      <div class="row">
+        <div class="controls">
+          <input type="submit" name="submit" value="Refresh" />
+        </div>
+      </div>
+    </form>
+  </div>
+  ...

Added: zamplugin.error/trunk/src/zamplugin/error/app.zcml
===================================================================
--- zamplugin.error/trunk/src/zamplugin/error/app.zcml	                        (rev 0)
+++ zamplugin.error/trunk/src/zamplugin/error/app.zcml	2008-04-13 22:27:06 UTC (rev 85343)
@@ -0,0 +1,21 @@
+<configure
+    xmlns:meta="http://namespaces.zope.org/meta"
+    xmlns="http://namespaces.zope.org/zope"
+    i18n_domain="zope">
+
+  <!-- load meta configuration for exclude -->
+  <include package="zc.configuration" file="meta.zcml" />
+
+  <!-- use app configuration from zam.api -->
+  <include package="zam.skin" file="app.zcml" />
+
+  <!-- exclude will prevent from include -->
+  <exclude package="zope.app.error.browser" />
+
+  <!-- zope app package configuration -->
+  <include package="zope.app.error" />
+
+  <!-- zam plugin configuration -->
+  <include package="zamplugin.error" />
+
+</configure>


Property changes on: zamplugin.error/trunk/src/zamplugin/error/app.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: zamplugin.error/trunk/src/zamplugin/error/ftesting.zcml
===================================================================
--- zamplugin.error/trunk/src/zamplugin/error/ftesting.zcml	2008-04-13 22:11:47 UTC (rev 85342)
+++ zamplugin.error/trunk/src/zamplugin/error/ftesting.zcml	2008-04-13 22:27:06 UTC (rev 85343)
@@ -1,21 +1,15 @@
 <configure
+    xmlns:meta="http://namespaces.zope.org/meta"
     xmlns="http://namespaces.zope.org/zope"
-    xmlns:browser="http://namespaces.zope.org/browser"
-    xmlns:z3c="http://namespaces.zope.org/z3c"
     i18n_domain="zope">
 
+  <!-- Turn on the devmode -->
+  <meta:provides feature="devmode" />
+
   <!-- use ftesting configuration from zam.api -->
   <include package="zam.skin" file="ftesting.zcml" />
 
+  <!-- load app configuration -->
+  <include package="zamplugin.error" file="app.zcml" />
 
-  <!-- exclude will prevent from include -->
-  <exclude package="zope.app.error.browser" />
-
-  <!-- zope app package configuration -->
-  <include package="zope.error" />
-
-
-  <!-- zam skin configuration -->
-  <include package="zamplugin.error" />
-
 </configure>



More information about the Checkins mailing list