[Checkins] SVN: z3c.layer.minimal/trunk/ Move minimal sub package from z3c.layer to it's own egg space

Roger Ineichen roger at projekt01.ch
Sat Sep 22 15:45:24 EDT 2007


Log message for revision 79836:
  Move minimal sub package from z3c.layer to it's own egg space

Changed:
  _U  z3c.layer.minimal/trunk/
  A   z3c.layer.minimal/trunk/README.txt
  A   z3c.layer.minimal/trunk/bootstrap.py
  A   z3c.layer.minimal/trunk/buildout.cfg
  A   z3c.layer.minimal/trunk/setup.py
  _U  z3c.layer.minimal/trunk/src/
  A   z3c.layer.minimal/trunk/src/z3c/__init__.py
  A   z3c.layer.minimal/trunk/src/z3c/layer/__init__.py
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/README.txt
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/SETUP.cfg
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/__init__.py
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/__init__.py
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/configure.zcml
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/notfound.pt
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/systemerror.pt
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/unauthorized.pt
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/user.pt
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/configure.zcml
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/de/
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/de/LC_MESSAGES/
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/de/LC_MESSAGES/z3c.layer.minimal.mo
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/de/LC_MESSAGES/z3c.layer.minimal.po
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/hu/
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/hu/LC_MESSAGES/
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/hu/LC_MESSAGES/z3c.layer.minimal.mo
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/hu/LC_MESSAGES/z3c.layer.minimal.po
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/ro/
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/ro/LC_MESSAGES/
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/ro/LC_MESSAGES/z3c.layer.minimal.mo
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/ro/LC_MESSAGES/z3c.layer.minimal.po
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/z3c.layer.minimal.pot
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/__init__.py
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/configure.zcml
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/error_macros.pt
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/ftesting.zcml
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/page.pt
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/page_macros.pt
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/test_layer.py
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/view_macros.pt
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/z3c.layer.minimal-configure.zcml
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.app.form.browser.zcml
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.app.http.exception.zcml
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.app.publication.zcml
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.app.publisher.browser.zcml
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.traversing.browser.zcml
  A   z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.traversing.zcml

-=-

Property changes on: z3c.layer.minimal/trunk
___________________________________________________________________
Name: svn:ignore
   + .installed.cfg
bin
parts
develop-eggs


Added: z3c.layer.minimal/trunk/README.txt
===================================================================
--- z3c.layer.minimal/trunk/README.txt	                        (rev 0)
+++ z3c.layer.minimal/trunk/README.txt	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1 @@
+A minimal layer setup for Zope3.


Property changes on: z3c.layer.minimal/trunk/README.txt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/bootstrap.py
===================================================================
--- z3c.layer.minimal/trunk/bootstrap.py	                        (rev 0)
+++ z3c.layer.minimal/trunk/bootstrap.py	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,52 @@
+##############################################################################
+#
+# Copyright (c) 2006 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Bootstrap a buildout-based project
+
+Simply run this script in a directory containing a buildout.cfg.
+The script accepts buildout command-line options, so you can
+use the -c option to specify an alternate configuration file.
+
+$Id: bootstrap.py 35779 2007-03-22 16:08:07Z batlogg $
+"""
+
+import os, shutil, sys, tempfile, urllib2
+
+tmpeggs = tempfile.mkdtemp()
+
+ez = {}
+exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
+                     ).read() in ez
+ez['use_setuptools'](to_dir=tmpeggs, download_delay=0)
+
+import pkg_resources
+
+cmd = 'from setuptools.command.easy_install import main; main()'
+if sys.platform == 'win32':
+    cmd = '"%s"' % cmd # work around spawn lamosity on windows
+
+ws = pkg_resources.working_set
+assert os.spawnle(
+    os.P_WAIT, sys.executable, sys.executable,
+    '-c', cmd, '-mqNxd', tmpeggs, 'zc.buildout',
+    dict(os.environ,
+         PYTHONPATH=
+         ws.find(pkg_resources.Requirement.parse('setuptools')).location
+         ),
+    ) == 0
+
+ws.add_entry(tmpeggs)
+ws.require('zc.buildout')
+import zc.buildout.buildout
+zc.buildout.buildout.main(sys.argv[1:] + ['bootstrap'])
+shutil.rmtree(tmpeggs)


Property changes on: z3c.layer.minimal/trunk/bootstrap.py
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/buildout.cfg
===================================================================
--- z3c.layer.minimal/trunk/buildout.cfg	                        (rev 0)
+++ z3c.layer.minimal/trunk/buildout.cfg	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,7 @@
+[buildout]
+develop = .
+parts = test
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = z3c.layer.minimal [test]

Added: z3c.layer.minimal/trunk/setup.py
===================================================================
--- z3c.layer.minimal/trunk/setup.py	                        (rev 0)
+++ z3c.layer.minimal/trunk/setup.py	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,62 @@
+#!python
+##############################################################################
+#
+# Copyright (c) 2007 Zope Foundation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Setup
+
+$Id: setup.py 313 2007-05-22 15:33:41Z srichter $
+"""
+from setuptools import setup, find_packages
+
+setup(
+    name = 'z3c.layer.minimal',
+    version = '0.3.0',
+    author = "Zope Community",
+    author_email = "zope3-dev at zope.org",
+    description = open("README.txt").read(),
+    license = "ZPL 2.1",
+    keywords = "minimal layer zope zope3",
+    classifiers = [
+        'Development Status :: 4 - Beta',
+        'Environment :: Web Environment',
+        'Intended Audience :: Developers',
+        'License :: OSI Approved :: Zope Public License',
+        'Programming Language :: Python',
+        'Natural Language :: English',
+        'Operating System :: OS Independent',
+        'Topic :: Internet :: WWW/HTTP',
+        'Framework :: Zope3'],
+    url = 'http://svn.zope.org/z3c.layer.minimal',
+    packages = find_packages('src'),
+    include_package_data = True,
+    package_dir = {'':'src'},
+    namespace_packages = ['z3c'],
+    extras_require = dict(
+        test = ['zope.testbrowser',
+                'zope.app.testing',
+                'zope.app.zcmlfiles',
+                'zope.app.securitypolicy',
+               ],
+        ),
+    install_requires = [
+        'setuptools',
+        'zope.app.http',
+        'zope.app.form',
+        'zope.app.publisher',
+        'zope.configuration',
+        'zope.traversing',
+        ],
+    dependency_links = ['http://download.zope.org/distribution'],
+    zip_safe = False,
+)
+


Property changes on: z3c.layer.minimal/trunk/setup.py
___________________________________________________________________
Name: svn:eol-style
   + native


Property changes on: z3c.layer.minimal/trunk/src
___________________________________________________________________
Name: svn:ignore
   + z3c.layer.minimal.egg-info


Added: z3c.layer.minimal/trunk/src/z3c/__init__.py
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/__init__.py	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/__init__.py	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,6 @@
+try:
+    # Declare this a namespace package if pkg_resources is available.
+    import pkg_resources
+    pkg_resources.declare_namespace('z3c')
+except ImportError:
+    pass
\ No newline at end of file


Property changes on: z3c.layer.minimal/trunk/src/z3c/__init__.py
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/src/z3c/layer/__init__.py
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/__init__.py	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/__init__.py	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,6 @@
+# namespace package boilerplate
+try:
+    __import__('pkg_resources').declare_namespace(__name__)
+except ImportError, e:
+    from pkgutil import extend_path
+    __path__ = extend_path(__path__, __name__)


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/__init__.py
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/README.txt
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/README.txt	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/README.txt	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,182 @@
+======
+README
+======
+
+This package contains the minimal layer. This layer supports a correct set of 
+component registration and can be used for inheritation in custom skins.
+
+Right now the default implementation in Zope3 has different restriction in the
+traversal concept and use to much registration on the default layer.
+
+
+IMinimalBrowserLayer
+--------------------
+
+The minimal layer is useful for build custom presentation skins without access 
+to ZMI menus like zmi_views etc. This means there is no menu item registred if 
+you use this layer.
+
+This layer is NOT derived from IDefaultBrowserLayer. Therefore it provides 
+only a minimal set of the most important public views such as @@absolute_url. 
+The following packages are accounted:
+
+- zope.app.http.exception
+- zope.app.publication
+- zope.app.publisher.browser
+- zope.app.traversing
+- zope.app.traversing.browser
+
+
+Testing
+-------
+
+For testing the IMinimalBrowserLayer we use the testing skin defined in the 
+tests package which uses the IMinimalBrowserLayer as the only base layer.
+This means, that our testing skin provides only the views defined in the 
+minimal package and it's testing views defined in tests.
+
+Login as manager first:
+
+  >>> from zope.testbrowser.testing import Browser
+  >>> manager = Browser()
+  >>> manager.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:
+
+  >>> manager = Browser()
+  >>> manager.addHeader('Authorization', 'Basic mgr:mgrpw')
+  >>> skinURL = 'http://localhost/++skin++MinimalTesting'
+  >>> manager.open(skinURL + '/page.html')
+  >>> manager.url
+  'http://localhost/++skin++MinimalTesting/page.html'
+
+  >>> print manager.contents
+  <BLANKLINE>
+  <html>
+  <head>
+    <title>testing</title>
+  </head>
+  <body>
+  <BLANKLINE>
+    test page
+  <BLANKLINE>
+  </body>
+  </html>
+  <BLANKLINE>
+  <BLANKLINE>
+
+Now check the not found page which is a exception view on the exception
+``zope.publisher.interfaces.INotFound``:
+
+  >>> manager.open(skinURL + '/foobar.html')
+  Traceback (most recent call last):
+  ...
+  httperror_seek_wrapper: HTTPError: HTTP Error 404: Not Found
+
+  >>> print manager.contents
+  <BLANKLINE>
+  <html>
+  <head>
+    <title>testing</title>
+  </head>
+  <body>
+  <div>
+    <br />
+    <br />
+    <h3>
+      The page you are trying to access is not available
+    </h3>
+    <br />
+    <b>
+      Please try the following:
+    </b>
+    <br />
+    <ol>
+      <li>
+        Make sure that the Web site address is spelled correctly.
+      </li>
+      <li>
+        <a href="javascript:history.back(1);">
+          Go back and try another URL.
+        </a>
+      </li>
+    </ol>
+  </div>
+  </body>
+  </html>
+  <BLANKLINE>
+  <BLANKLINE>
+
+And check the user error page which is a view registred for 
+``zope.exceptions.interfaces.IUserError`` exceptions:
+
+  >>> manager.open(skinURL + '/@@usererror.html')
+  >>> print manager.contents
+  <BLANKLINE>
+  <html>
+  <head>
+    <title>testing</title>
+  </head>
+  <body>
+  <div>
+    <div>simply user error</div>
+  </div>
+  </body>
+  </html>
+  <BLANKLINE>
+  <BLANKLINE>
+
+And check error view registred for 
+``zope.interface.common.interfaces.IException``:
+
+  >>> manager.open(skinURL + '/@@systemerror.html')
+  >>> print manager.contents
+  <BLANKLINE>
+  <html>
+  <head>
+    <title>testing</title>
+  </head>
+  <body>
+  <div>
+    <br />
+    <br />
+    <h3>A system error occurred</h3>
+    <br />
+    <b>Please contact the administrator.</b>
+    <a href="javascript:history.back(1);">
+      Go back and try another URL.
+    </a>
+  </div>
+  </body>
+  </html>
+  <BLANKLINE>
+  <BLANKLINE>
+
+And check the ``zope.security.interfaces.IUnauthorized`` view, use a new 
+unregistred user (test browser) for this:
+
+  >>> unauthorized = Browser()
+  >>> unauthorized.open(skinURL + '/@@forbidden.html')
+  Traceback (most recent call last):
+  ...
+  httperror_seek_wrapper: HTTPError: HTTP Error 401: Unauthorized
+
+  >>> print unauthorized.contents
+  <BLANKLINE>
+  <html>
+  <head>
+    <title>testing</title>
+  </head>
+  <body>
+  <div>
+  <BLANKLINE>
+  <h1>Unauthorized</h1>
+  <BLANKLINE>
+  <p>You are not authorized</p>
+  <BLANKLINE>
+  </div>
+  </body>
+  </html>
+  <BLANKLINE>
+  <BLANKLINE>


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/README.txt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/SETUP.cfg
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/SETUP.cfg	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/SETUP.cfg	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,3 @@
+<data-files zopeskel/etc/package-includes>
+  z3c.layer.minimal-*.zcml
+</data-files>

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/__init__.py
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/__init__.py	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/__init__.py	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,22 @@
+##############################################################################
+#
+# Copyright (c) 2005 Zope Foundation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""
+$Id: __init__.py 69386 2006-08-10 08:24:12Z rogerineichen $
+"""
+
+from zope.publisher.interfaces.browser import IBrowserRequest
+
+
+class IMinimalBrowserLayer(IBrowserRequest):
+    """Like IDefaultBrowserLayer but only with the most important views."""


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/__init__.py
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/__init__.py
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/__init__.py	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/__init__.py	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,16 @@
+##############################################################################
+#
+# Copyright (c) 2005 Zope Foundation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""
+$Id: __init__.py 69386 2006-08-10 08:24:12Z rogerineichen $
+"""


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/__init__.py
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/configure.zcml
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/configure.zcml	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/configure.zcml	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,52 @@
+<configure
+    xmlns:zope="http://namespaces.zope.org/zope"
+    xmlns="http://namespaces.zope.org/browser"
+    xmlns:i18n="http://namespaces.zope.org/i18n"
+    i18n_domain="z3c.layer.minimal">
+
+  <page
+      for="zope.interface.common.interfaces.IException"
+      name="index.html"
+      class="zope.app.exception.systemerror.SystemErrorView"
+      template="systemerror.pt"
+      permission="zope.Public"
+      layer="z3c.layer.minimal.IMinimalBrowserLayer"
+      />
+
+  <page
+      for="zope.publisher.interfaces.ITraversalException"
+      name="index.html"
+      class="zope.app.exception.systemerror.SystemErrorView"
+      template="systemerror.pt"
+      permission="zope.Public"
+      layer="z3c.layer.minimal.IMinimalBrowserLayer"
+      />
+
+  <page
+      for="zope.security.interfaces.IUnauthorized"
+      name="index.html"
+      class="zope.app.exception.browser.unauthorized.Unauthorized"
+      template="unauthorized.pt"
+      permission="zope.Public"
+      layer="z3c.layer.minimal.IMinimalBrowserLayer"
+      />
+
+  <page
+      for="zope.exceptions.interfaces.IUserError"
+      name="index.html"
+      class="zope.app.exception.browser.user.UserErrorView"
+      template="user.pt"
+      permission="zope.Public"
+      layer="z3c.layer.minimal.IMinimalBrowserLayer"
+      />
+
+  <page
+      for="zope.publisher.interfaces.INotFound"
+      name="index.html"
+      class="zope.app.exception.browser.notfound.NotFound"
+      template="notfound.pt"
+      permission="zope.Public"
+      layer="z3c.layer.minimal.IMinimalBrowserLayer"
+      />
+
+</configure>


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/configure.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/notfound.pt
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/notfound.pt	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/notfound.pt	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,26 @@
+<html metal:use-macro="context/@@standard_macros/error">
+<body i18n:domain="z3c.layer.minimal">
+<div metal:fill-slot="body">
+  <br/>
+  <br/>
+  <h3  i18n:translate="page-not-found">
+    The page you are trying to access is not available
+  </h3>
+  <br/>
+  <b i18n:translate="page-not-found-try">
+    Please try the following:
+  </b>
+  <br/>
+  <ol>
+    <li i18n:translate="page-not-found-spell">
+      Make sure that the Web site address is spelled correctly.
+    </li>
+    <li>
+      <a href="javascript:history.back(1);" i18n:translate="page-not-found-try-again">
+        Go back and try another URL.
+      </a>
+    </li>
+  </ol>   
+</div>
+</body>
+</html>


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/notfound.pt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/systemerror.pt
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/systemerror.pt	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/systemerror.pt	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,14 @@
+<html metal:use-macro="context/@@standard_macros/error">
+<body i18n:domain="z3c.layer.minimal">
+<div metal:fill-slot="body">
+  <br/>
+  <br/>
+  <h3 i18n:translate="sys-error">A system error occurred</h3>
+  <br/>
+  <b i18n:translate="sys-error-contact">Please contact the administrator.</b>
+  <a href="javascript:history.back(1);" i18n:translate="sys-error-try-again">
+    Go back and try another URL.
+  </a>
+</div>
+</body>
+</html>


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/systemerror.pt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/unauthorized.pt
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/unauthorized.pt	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/unauthorized.pt	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,13 @@
+<tal:Make_sure_we_process_the_authorization_challenge_first
+  condition="view/issueChallenge"/>
+<html metal:use-macro="context/@@standard_macros/error">
+  <body i18n:domain="z3c.layer.minimal">
+  <div metal:fill-slot="body">
+    <br/>
+    <br/>
+    <h3 i18n:translate="unauthorized">Unauthorized</h3>
+    <br/>
+    <b i18n:translate="unauthorized-msg">You are not authorized.</b>
+</div>
+</body>
+</html>


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/unauthorized.pt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/user.pt
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/user.pt	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/user.pt	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,7 @@
+<html metal:use-macro="context/@@standard_macros/error">
+<body i18n:domain="z3c.layer.minimal">
+<div metal:fill-slot="body">
+  <div tal:repeat="part context" tal:content="part">Error message</div>
+</div>
+</body>
+</html>


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/browser/user.pt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/configure.zcml
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/configure.zcml	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/configure.zcml	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,25 @@
+<configure
+    xmlns="http://namespaces.zope.org/zope"
+    xmlns:browser="http://namespaces.zope.org/browser"
+    xmlns:i18n="http://namespaces.zope.org/i18n"
+    i18n_domain="z3c.layer.minimal">
+    
+  <i18n:registerTranslations directory="locales" />
+
+  <interface
+      interface="z3c.layer.minimal.IMinimalBrowserLayer"
+      type="zope.publisher.interfaces.browser.IBrowserSkinType"
+      />
+
+  
+  <include file="zope.app.form.browser.zcml" />
+  <include file="zope.app.http.exception.zcml" />
+  <include file="zope.app.publication.zcml" />
+  <include file="zope.app.publisher.browser.zcml" />
+  <include file="zope.traversing.zcml" />
+  <include file="zope.traversing.browser.zcml" />
+
+  <include package=".browser" />
+
+
+</configure>


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/configure.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/de/LC_MESSAGES/z3c.layer.minimal.mo
===================================================================
(Binary files differ)


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/de/LC_MESSAGES/z3c.layer.minimal.mo
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/de/LC_MESSAGES/z3c.layer.minimal.po
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/de/LC_MESSAGES/z3c.layer.minimal.po	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/de/LC_MESSAGES/z3c.layer.minimal.po	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,57 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: z3c.layer.minimal\n"
+"POT-Creation-Date: Fri Jan 12 09:31:15 2007\n"
+"PO-Revision-Date: 2007-01-10 17:12+0100\n"
+"Last-Translator: Wolfgang Reutz <wolfgang at lovelysystems.com>\n"
+"Language-Team: Lovely Systems <office at lovelysystems.com>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-Country: AUSTRIA\n"
+"X-Poedit-SourceCharset: utf-8\n"
+
+#. Default: "Make sure that the Web site address is spelled correctly."
+#: lib/python/z3c/layer/minimal/browser/notfound.pt:13
+msgid "page-not-found-spell"
+msgstr "Stellen Sie sicher, dass Sie die Adresse korrekt eingegeben haben."
+
+#. Default: "Go back and try another URL."
+#: lib/python/z3c/layer/minimal/browser/notfound.pt:17
+msgid "page-not-found-try-again"
+msgstr "Zurück, um eine andere Adresse einzugeben."
+
+#. Default: "The page you are trying to access is not available"
+#: lib/python/z3c/layer/minimal/browser/notfound.pt:4
+msgid "page-not-found"
+msgstr "Die angeforderte Seite ist nicht verfügbar"
+
+#. Default: "Please try the following:"
+#: lib/python/z3c/layer/minimal/browser/notfound.pt:8
+msgid "page-not-found-try"
+msgstr "Sie können folgendes versuchen:"
+
+#. Default: "A system error occurred"
+#: lib/python/z3c/layer/minimal/browser/systemerror.pt:4
+msgid "sys-error"
+msgstr "Es ist ein Systemfehler aufgetreten"
+
+#. Default: "Please contact the administrator."
+#: lib/python/z3c/layer/minimal/browser/systemerror.pt:6
+msgid "sys-error-contact"
+msgstr "Bitte kontaktieren Sie den Administrator."
+
+#. Default: "Go back and try another URL."
+#: lib/python/z3c/layer/minimal/browser/systemerror.pt:7
+msgid "sys-error-try-again"
+msgstr "Zurück, um eine andere Adresse einzugeben."
+
+#. Default: "Unauthorized"
+#: lib/python/z3c/layer/minimal/browser/unauthorized.pt:6
+msgid "unauthorized"
+msgstr "Nicht autorisiert"
+
+#. Default: "You are not authorized."
+#: lib/python/z3c/layer/minimal/browser/unauthorized.pt:8
+msgid "unauthorized-msg"
+msgstr "Sie sind nicht autorisiert."

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/hu/LC_MESSAGES/z3c.layer.minimal.mo
===================================================================
(Binary files differ)


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/hu/LC_MESSAGES/z3c.layer.minimal.mo
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/hu/LC_MESSAGES/z3c.layer.minimal.po
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/hu/LC_MESSAGES/z3c.layer.minimal.po	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/hu/LC_MESSAGES/z3c.layer.minimal.po	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,57 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: z3c.layer.minimal\n"
+"POT-Creation-Date: Fri Jan 12 09:31:15 2007\n"
+"PO-Revision-Date: 2007-01-10 17:12+0100\n"
+"Last-Translator: Wolfgang Reutz <wolfgang at lovelysystems.com>\n"
+"Language-Team: Lovely Systems <office at lovelysystems.com>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-Country: AUSTRIA\n"
+"X-Poedit-SourceCharset: utf-8\n"
+
+#. Default: "Make sure that the Web site address is spelled correctly."
+#: lib/python/z3c/layer/minimal/browser/notfound.pt:13
+msgid "page-not-found-spell"
+msgstr ""
+
+#. Default: "Go back and try another URL."
+#: lib/python/z3c/layer/minimal/browser/notfound.pt:17
+msgid "page-not-found-try-again"
+msgstr ""
+
+#. Default: "The page you are trying to access is not available"
+#: lib/python/z3c/layer/minimal/browser/notfound.pt:4
+msgid "page-not-found"
+msgstr ""
+
+#. Default: "Please try the following:"
+#: lib/python/z3c/layer/minimal/browser/notfound.pt:8
+msgid "page-not-found-try"
+msgstr ""
+
+#. Default: "A system error occurred"
+#: lib/python/z3c/layer/minimal/browser/systemerror.pt:4
+msgid "sys-error"
+msgstr ""
+
+#. Default: "Please contact the administrator."
+#: lib/python/z3c/layer/minimal/browser/systemerror.pt:6
+msgid "sys-error-contact"
+msgstr ""
+
+#. Default: "Go back and try another URL."
+#: lib/python/z3c/layer/minimal/browser/systemerror.pt:7
+msgid "sys-error-try-again"
+msgstr ""
+
+#. Default: "Unauthorized"
+#: lib/python/z3c/layer/minimal/browser/unauthorized.pt:6
+msgid "unauthorized"
+msgstr ""
+
+#. Default: "You are not authorized."
+#: lib/python/z3c/layer/minimal/browser/unauthorized.pt:8
+msgid "unauthorized-msg"
+msgstr ""

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/ro/LC_MESSAGES/z3c.layer.minimal.mo
===================================================================
(Binary files differ)


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/ro/LC_MESSAGES/z3c.layer.minimal.mo
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/ro/LC_MESSAGES/z3c.layer.minimal.po
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/ro/LC_MESSAGES/z3c.layer.minimal.po	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/ro/LC_MESSAGES/z3c.layer.minimal.po	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,57 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: z3c.layer.minimal\n"
+"POT-Creation-Date: Fri Jan 12 09:31:15 2007\n"
+"PO-Revision-Date: 2007-01-10 17:12+0100\n"
+"Last-Translator: Wolfgang Reutz <wolfgang at lovelysystems.com>\n"
+"Language-Team: Lovely Systems <office at lovelysystems.com>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-Country: AUSTRIA\n"
+"X-Poedit-SourceCharset: utf-8\n"
+
+#. Default: "Make sure that the Web site address is spelled correctly."
+#: lib/python/z3c/layer/minimal/browser/notfound.pt:13
+msgid "page-not-found-spell"
+msgstr ""
+
+#. Default: "Go back and try another URL."
+#: lib/python/z3c/layer/minimal/browser/notfound.pt:17
+msgid "page-not-found-try-again"
+msgstr ""
+
+#. Default: "The page you are trying to access is not available"
+#: lib/python/z3c/layer/minimal/browser/notfound.pt:4
+msgid "page-not-found"
+msgstr ""
+
+#. Default: "Please try the following:"
+#: lib/python/z3c/layer/minimal/browser/notfound.pt:8
+msgid "page-not-found-try"
+msgstr ""
+
+#. Default: "A system error occurred"
+#: lib/python/z3c/layer/minimal/browser/systemerror.pt:4
+msgid "sys-error"
+msgstr ""
+
+#. Default: "Please contact the administrator."
+#: lib/python/z3c/layer/minimal/browser/systemerror.pt:6
+msgid "sys-error-contact"
+msgstr ""
+
+#. Default: "Go back and try another URL."
+#: lib/python/z3c/layer/minimal/browser/systemerror.pt:7
+msgid "sys-error-try-again"
+msgstr ""
+
+#. Default: "Unauthorized"
+#: lib/python/z3c/layer/minimal/browser/unauthorized.pt:6
+msgid "unauthorized"
+msgstr ""
+
+#. Default: "You are not authorized."
+#: lib/python/z3c/layer/minimal/browser/unauthorized.pt:8
+msgid "unauthorized-msg"
+msgstr ""

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/z3c.layer.minimal.pot
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/z3c.layer.minimal.pot	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/locales/z3c.layer.minimal.pot	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,70 @@
+##############################################################################
+#
+# Copyright (c) 2003-2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+msgid ""
+msgstr ""
+"Project-Id-Version: Development/Revision: 71392\n"
+"POT-Creation-Date: Fri Jan 12 09:31:15 2007\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"Language-Team: Zope 3 Developers <zope3-dev at zope.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Generated-By: zope/app/locales/extract.py\n"
+
+#: lib/python/z3c/layer/minimal/browser/notfound.pt:13
+#. Default: "Make sure that the Web site address is spelled correctly."
+msgid "page-not-found-spell"
+msgstr ""
+
+#: lib/python/z3c/layer/minimal/browser/notfound.pt:17
+#. Default: "Go back and try another URL."
+msgid "page-not-found-try-again"
+msgstr ""
+
+#: lib/python/z3c/layer/minimal/browser/notfound.pt:4
+#. Default: "The page you are trying to access is not available"
+msgid "page-not-found"
+msgstr ""
+
+#: lib/python/z3c/layer/minimal/browser/notfound.pt:8
+#. Default: "Please try the following:"
+msgid "page-not-found-try"
+msgstr ""
+
+#: lib/python/z3c/layer/minimal/browser/systemerror.pt:4
+#. Default: "A system error occurred"
+msgid "sys-error"
+msgstr ""
+
+#: lib/python/z3c/layer/minimal/browser/systemerror.pt:6
+#. Default: "Please contact the administrator."
+msgid "sys-error-contact"
+msgstr ""
+
+#: lib/python/z3c/layer/minimal/browser/systemerror.pt:7
+#. Default: "Go back and try another URL."
+msgid "sys-error-try-again"
+msgstr ""
+
+#: lib/python/z3c/layer/minimal/browser/unauthorized.pt:6
+#. Default: "Unauthorized"
+msgid "unauthorized"
+msgstr ""
+
+#: lib/python/z3c/layer/minimal/browser/unauthorized.pt:8
+#. Default: "You are not authorized."
+msgid "unauthorized-msg"
+msgstr ""
+

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/__init__.py
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/__init__.py	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/__init__.py	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,79 @@
+##############################################################################
+#
+# Copyright (c) 2005 Zope Foundation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""
+$Id: __init__.py 69386 2006-08-10 08:24:12Z rogerineichen $
+"""
+
+import zope.interface
+import zope.component
+from zope.publisher.browser import BrowserView, BrowserPage
+from zope.security.interfaces import Unauthorized
+from zope.exceptions.interfaces import UserError
+
+from z3c.layer import minimal
+
+
+class IMinimalTestingSkin(minimal.IMinimalBrowserLayer):
+    """The IMinimalBrowserLayer testing skin."""
+
+
+class TestingStandardMacros(BrowserView):
+
+    zope.interface.implements(zope.interface.common.mapping.IItemMapping)
+
+    macro_pages = ('page_macros', 'view_macros', 'error_macros')
+    aliases = {
+        'view': 'page',
+        'dialog': 'page',
+        'addingdialog': 'page'
+        }
+
+    def __getitem__(self, key):
+        key = self.aliases.get(key, key)
+        context = self.context
+        request = self.request
+        for name in self.macro_pages:
+            page = zope.component.getMultiAdapter((context, request), 
+                name=name)
+            try:
+                v = page[key]
+            except KeyError:
+                pass
+            else:
+                return v
+        raise KeyError(key)
+
+
+class UnauthorizedPage(BrowserPage):
+    """Unauthorized view."""
+
+    def __call__(self):
+        raise Unauthorized('not authorized')
+        return u''
+
+
+class UserErrorPage(BrowserPage):
+    """Unauthorized view."""
+
+    def __call__(self):
+        raise UserError('simply user error')
+        return u''
+
+
+class SystemErrorPage(BrowserPage):
+    """Unauthorized view."""
+
+    def __call__(self):
+        raise Exception('simply system error')
+        return u''
\ No newline at end of file


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/__init__.py
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/configure.zcml
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/configure.zcml	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/configure.zcml	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,7 @@
+<configure
+    xmlns="http://namespaces.zope.org/zope"
+    xmlns:browser="http://namespaces.zope.org/browser">
+
+  <include file="ftesting.zcml" />
+
+</configure>


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/configure.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/error_macros.pt
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/error_macros.pt	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/error_macros.pt	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,10 @@
+<metal:block define-macro="error">
+<html>
+<head>
+  <title>testing</title>
+</head>
+<body>
+<metal:block define-slot="body">body</metal:block>
+</body>
+</html>
+</metal:block>


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/error_macros.pt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/ftesting.zcml
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/ftesting.zcml	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/ftesting.zcml	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,132 @@
+<configure xmlns="http://namespaces.zope.org/zope"
+           xmlns:meta="http://namespaces.zope.org/meta"
+           xmlns:browser="http://namespaces.zope.org/browser"
+           i18n_domain="zope"
+           package="z3c.layer.minimal.tests">
+
+  <include package="zope.app.zcmlfiles" />
+
+  <include package="zope.app.securitypolicy" file="meta.zcml" />
+  <include package="zope.app.authentication" />
+  <securityPolicy
+    component="zope.app.securitypolicy.zopepolicy.ZopeSecurityPolicy" />
+
+  <include package="zope.app.securitypolicy" />
+
+  <role id="zope.Anonymous" title="Everybody"
+        description="All users have this role implicitly" />
+
+  <role id="zope.Manager" title="Site Manager" />
+
+  <principal
+   id="zope.manager"
+   title="Administrator"
+   login="mgr"
+   password="mgrpw" />
+
+  <grant
+   role="zope.Manager"
+   principal="zope.manager"
+   />
+
+  <unauthenticatedPrincipal
+    id="zope.anybody"
+    title="Unauthenticated User" />
+
+  <unauthenticatedGroup
+    id="zope.Anybody"
+    title="Unauthenticated Users"
+    />
+
+  <authenticatedGroup
+    id="zope.Authenticated"
+    title="Authenticated Users"
+    />
+
+  <everybodyGroup
+    id="zope.Everybody"
+    title="All Users"
+    />
+
+  <grantAll role="zope.Manager" />
+
+  <include package="zope.app.form.browser" />
+  <include package="zope.app.http.exception" />
+  <include package="zope.app.publication" />
+  <include package="zope.app.publisher.browser" />
+  <include package="zope.traversing" />
+  <include package="zope.traversing.browser" />
+  <include package="z3c.layer.minimal" />
+
+  <interface
+      interface="z3c.layer.minimal.tests.IMinimalTestingSkin"
+      type="zope.publisher.interfaces.browser.IBrowserSkinType"
+      name="MinimalTesting"
+      />
+
+  <browser:page
+      for="*"
+      name="standard_macros"
+      permission="zope.Public"
+      class=".TestingStandardMacros"
+      layer="z3c.layer.minimal.IMinimalBrowserLayer"
+      allowed_interface="zope.interface.common.mapping.IItemMapping"
+      />
+
+  <browser:page
+      for="*"
+      name="page_macros"
+      permission="zope.Public"
+      layer="z3c.layer.minimal.IMinimalBrowserLayer"
+      template="page_macros.pt"
+      />
+
+  <browser:page
+      for="*"
+      name="view_macros"
+      permission="zope.Public"
+      layer="z3c.layer.minimal.IMinimalBrowserLayer"
+      template="view_macros.pt"
+      />
+
+  <browser:page
+      for="*"
+      name="error_macros"
+      permission="zope.Public"
+      layer="z3c.layer.minimal.IMinimalBrowserLayer"
+      template="error_macros.pt"
+      />
+
+  <browser:page
+      for="*"
+      name="page.html"
+      permission="zope.ManageContent"
+      layer="z3c.layer.minimal.IMinimalBrowserLayer"
+      template="page.pt"
+      />
+
+  <browser:page
+      for="*"
+      name="forbidden.html"
+      permission="zope.View"
+      layer="z3c.layer.minimal.IMinimalBrowserLayer"
+      class=".UnauthorizedPage"
+      />
+
+  <browser:page
+      for="*"
+      name="usererror.html"
+      permission="zope.View"
+      layer="z3c.layer.minimal.IMinimalBrowserLayer"
+      class=".UserErrorPage"
+      />
+
+  <browser:page
+      for="*"
+      name="systemerror.html"
+      permission="zope.View"
+      layer="z3c.layer.minimal.IMinimalBrowserLayer"
+      class=".SystemErrorPage"
+      />
+
+</configure>


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/ftesting.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/page.pt
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/page.pt	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/page.pt	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,7 @@
+<html metal:use-macro="context/@@standard_macros/page">
+<body>
+<metal:block fill-slot="body">
+  test page
+</metal:block>
+</body>
+</html>


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/page.pt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/page_macros.pt
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/page_macros.pt	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/page_macros.pt	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,10 @@
+<metal:block define-macro="page">
+<html>
+<head>
+  <title>testing</title>
+</head>
+<body>
+<metal:block define-slot="body">body</metal:block>
+</body>
+</html>
+</metal:block>


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/page_macros.pt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/test_layer.py
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/test_layer.py	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/test_layer.py	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,34 @@
+##############################################################################
+#
+# Copyright (c) 2005 Zope Foundation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""
+$Id: test_layer.py 73898 2007-03-29 09:10:19Z shh $
+"""
+
+import unittest
+from zope.app.testing import functional
+
+functional.defineLayer('TestLayer', 'ftesting.zcml')
+
+
+def test_suite():
+    suite = unittest.TestSuite()
+
+    s = functional.FunctionalDocFileSuite('../README.txt')
+    s.layer = TestLayer
+    suite.addTest(s)
+
+    return suite
+
+if __name__ == '__main__':
+    unittest.main(defaultTest='test_suite')


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/test_layer.py
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/view_macros.pt
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/view_macros.pt	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/view_macros.pt	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,10 @@
+<metal:block define-macro="view">
+<html>
+<head>
+  <title>testing</title>
+</head>
+<body>
+<metal:block define-slot="body">body</metal:block>
+</body>
+</html>
+</metal:block>


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/tests/view_macros.pt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/z3c.layer.minimal-configure.zcml
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/z3c.layer.minimal-configure.zcml	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/z3c.layer.minimal-configure.zcml	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1 @@
+<include package="z3c.layer.minimal" />


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/z3c.layer.minimal-configure.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.app.form.browser.zcml
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.app.form.browser.zcml	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.app.form.browser.zcml	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,14 @@
+<configure
+    xmlns="http://namespaces.zope.org/zope"
+    xmlns:browser="http://namespaces.zope.org/browser">
+
+  <!-- Views for Widget Errors -->
+  <view
+      type="z3c.layer.minimal.IMinimalBrowserLayer"
+      for="zope.app.form.interfaces.IWidgetInputError"
+      provides="zope.app.form.browser.interfaces.IWidgetInputErrorView"
+      factory="zope.app.form.browser.exception.WidgetInputErrorView"
+      permission="zope.Public"
+      />
+
+</configure>


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.app.form.browser.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.app.http.exception.zcml
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.app.http.exception.zcml	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.app.http.exception.zcml	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,19 @@
+<configure xmlns="http://namespaces.zope.org/zope">
+
+  <view
+      for="zope.security.interfaces.IUnauthorized"
+      name="index.html"
+      permission="zope.Public"
+      factory="zope.app.http.exception.unauthorized.Unauthorized"
+      type="z3c.layer.minimal.IMinimalBrowserLayer"
+      />
+
+  <view
+      for="zope.publisher.interfaces.ITraversalException"
+      name="index.html"
+      permission="zope.Public"
+      factory="zope.app.http.exception.notfound.NotFound"
+      type="z3c.layer.minimal.IMinimalBrowserLayer"
+      />
+
+</configure>


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.app.http.exception.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.app.publication.zcml
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.app.publication.zcml	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.app.publication.zcml	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,14 @@
+<configure
+    xmlns="http://namespaces.zope.org/zope"
+    xmlns:browser="http://namespaces.zope.org/browser"
+    i18n_domain="z3c">
+
+  <browser:view
+      for="zope.app.publication.interfaces.IFileContent"
+      provides="zope.publisher.interfaces.browser.IBrowserPublisher"
+      class="zope.app.publication.traversers.FileContentTraverser"
+      permission="zope.Public"
+      layer="z3c.layer.minimal.IMinimalBrowserLayer"
+      />
+
+</configure>


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.app.publication.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.app.publisher.browser.zcml
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.app.publisher.browser.zcml	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.app.publisher.browser.zcml	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,15 @@
+<configure
+    xmlns="http://namespaces.zope.org/zope"
+    xmlns:browser="http://namespaces.zope.org/browser"
+    i18n_domain="z3c">
+
+  <browser:page 
+      name=""
+      for="zope.app.component.interfaces.ISite"
+      class="zope.app.publisher.browser.resources.Resources"
+      permission="zope.Public"
+      allowed_interface="zope.publisher.interfaces.browser.IBrowserPublisher"
+      layer="z3c.layer.minimal.IMinimalBrowserLayer"
+      />
+
+</configure>


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.app.publisher.browser.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.traversing.browser.zcml
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.traversing.browser.zcml	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.traversing.browser.zcml	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,85 @@
+<configure
+    xmlns="http://namespaces.zope.org/zope"
+    xmlns:browser="http://namespaces.zope.org/browser"
+    i18n_domain="z3c">
+
+  <adapter
+      for="zope.interface.Interface
+           z3c.layer.minimal.IMinimalBrowserLayer"
+      provides="zope.publisher.interfaces.browser.IBrowserPublisher"
+      factory="zope.app.publication.traversers.SimpleComponentTraverser"
+      permission="zope.Public"
+      trusted="True"
+      />
+
+  <adapter
+      for="zope.app.container.interfaces.IItemContainer
+           z3c.layer.minimal.IMinimalBrowserLayer"
+      provides="zope.publisher.interfaces.browser.IBrowserPublisher"
+      factory="zope.app.container.traversal.ItemTraverser"
+      permission="zope.Public"
+      trusted="True"
+      />
+
+  <adapter
+      for="zope.app.container.interfaces.ISimpleReadContainer
+           z3c.layer.minimal.IMinimalBrowserLayer"
+      provides="zope.publisher.interfaces.browser.IBrowserPublisher"
+      factory="zope.app.container.traversal.ItemTraverser"
+      permission="zope.Public"
+      trusted="True"
+      />
+
+  <view
+      for="*"
+      name="absolute_url"
+      factory="zope.traversing.browser.AbsoluteURL"
+      permission="zope.Public"
+      allowed_interface="zope.traversing.browser.interfaces.IAbsoluteURL"
+      type="z3c.layer.minimal.IMinimalBrowserLayer"
+      />
+
+  <view
+      for="*"
+      factory="zope.traversing.browser.AbsoluteURL"
+      permission="zope.Public"
+      provides="zope.traversing.browser.interfaces.IAbsoluteURL"
+      type="z3c.layer.minimal.IMinimalBrowserLayer"
+      />
+
+  <view
+      for="zope.traversing.interfaces.IContainmentRoot"
+      name="absolute_url"
+      factory="zope.traversing.browser.SiteAbsoluteURL"
+      permission="zope.Public"
+      allowed_interface="zope.traversing.browser.interfaces.IAbsoluteURL"
+      type="z3c.layer.minimal.IMinimalBrowserLayer"
+      />
+      
+  <view
+      for="zope.traversing.interfaces.IContainmentRoot"
+      factory="zope.traversing.browser.SiteAbsoluteURL"
+      permission="zope.Public"
+      provides="zope.traversing.browser.interfaces.IAbsoluteURL"
+      type="z3c.layer.minimal.IMinimalBrowserLayer"
+      />
+
+  <browser:page
+      for="*"
+      name="absolute_url"
+      class="zope.traversing.browser.AbsoluteURL"
+      permission="zope.Public"
+      allowed_interface="zope.traversing.browser.interfaces.IAbsoluteURL"
+      layer="z3c.layer.minimal.IMinimalBrowserLayer"
+      />
+
+  <browser:page
+      for="zope.traversing.interfaces.IContainmentRoot"
+      name="absolute_url"
+      class="zope.traversing.browser.SiteAbsoluteURL"
+      permission="zope.Public"
+      allowed_interface="zope.traversing.browser.interfaces.IAbsoluteURL"
+      layer="z3c.layer.minimal.IMinimalBrowserLayer"
+      />
+
+</configure>


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.traversing.browser.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.traversing.zcml
===================================================================
--- z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.traversing.zcml	                        (rev 0)
+++ z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.traversing.zcml	2007-09-22 19:45:23 UTC (rev 79836)
@@ -0,0 +1,73 @@
+<configure xmlns="http://namespaces.zope.org/zope">
+
+  <view
+      name="etc"
+      provides="zope.traversing.interfaces.ITraversable" for="*"
+      factory="zope.traversing.namespace.etc"
+      type="z3c.layer.minimal.IMinimalBrowserLayer"
+      />
+
+  <view
+      name="attribute"
+      provides="zope.traversing.interfaces.ITraversable" for="*"
+      factory="zope.traversing.namespace.attr"
+      type="z3c.layer.minimal.IMinimalBrowserLayer"
+      />
+
+  <view
+      name="adapter"
+      provides="zope.traversing.interfaces.ITraversable" for="*"
+      factory="zope.traversing.namespace.adapter"
+      type="z3c.layer.minimal.IMinimalBrowserLayer"
+      />
+
+  <view
+      name="item"
+      provides="zope.traversing.interfaces.ITraversable" for="*"
+      factory="zope.traversing.namespace.item"
+      type="z3c.layer.minimal.IMinimalBrowserLayer"
+      />
+
+  <view
+      name="acquire"
+      provides="zope.traversing.interfaces.ITraversable" for="*"
+      factory="zope.traversing.namespace.acquire"
+      type="z3c.layer.minimal.IMinimalBrowserLayer"
+      />
+
+  <view
+      name="view"
+      provides="zope.traversing.interfaces.ITraversable" for="*"
+      factory="zope.traversing.namespace.view"
+      type="z3c.layer.minimal.IMinimalBrowserLayer"
+      />
+
+  <view
+      name="resource"
+      provides="zope.traversing.interfaces.ITraversable" for="*"
+      factory="zope.traversing.namespace.resource"
+      type="z3c.layer.minimal.IMinimalBrowserLayer"
+      />
+
+  <view
+      name="skin"
+      provides="zope.traversing.interfaces.ITraversable" for="*"
+      factory="zope.traversing.namespace.skin"
+      type="z3c.layer.minimal.IMinimalBrowserLayer"
+      />
+
+  <view
+      name="vh"
+      provides="zope.traversing.interfaces.ITraversable" for="*"
+      factory="zope.traversing.namespace.vh"
+      type="z3c.layer.minimal.IMinimalBrowserLayer"
+      />
+
+  <view
+      name="debug"
+      provides="zope.traversing.interfaces.ITraversable" for="*"
+      factory="zope.traversing.namespace.debug"
+      type="z3c.layer.minimal.IMinimalBrowserLayer"
+      />
+
+</configure>


Property changes on: z3c.layer.minimal/trunk/src/z3c/layer/minimal/zope.traversing.zcml
___________________________________________________________________
Name: svn:eol-style
   + native



More information about the Checkins mailing list