[Checkins] SVN: z3c.layer/trunk/ Getting ready for a new release.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Tue May 22 14:19:46 EDT 2007
Log message for revision 75892:
Getting ready for a new release.
Changed:
U z3c.layer/trunk/buildout.cfg
D z3c.layer/trunk/setup.cfg
U z3c.layer/trunk/setup.py
U z3c.layer/trunk/src/z3c/layer/pagelet/README.txt
-=-
Modified: z3c.layer/trunk/buildout.cfg
===================================================================
--- z3c.layer/trunk/buildout.cfg 2007-05-22 17:50:21 UTC (rev 75891)
+++ z3c.layer/trunk/buildout.cfg 2007-05-22 18:19:46 UTC (rev 75892)
@@ -2,8 +2,6 @@
develop = .
parts = test
-find-links = http://download.zope.org/distribution/
-
[test]
recipe = zc.recipe.testrunner
eggs = z3c.layer [test]
Deleted: z3c.layer/trunk/setup.cfg
===================================================================
--- z3c.layer/trunk/setup.cfg 2007-05-22 17:50:21 UTC (rev 75891)
+++ z3c.layer/trunk/setup.cfg 2007-05-22 18:19:46 UTC (rev 75892)
@@ -1,2 +0,0 @@
-[egg_info]
-tag_svn_revision = 1
Modified: z3c.layer/trunk/setup.py
===================================================================
--- z3c.layer/trunk/setup.py 2007-05-22 17:50:21 UTC (rev 75891)
+++ z3c.layer/trunk/setup.py 2007-05-22 18:19:46 UTC (rev 75892)
@@ -1,20 +1,58 @@
#!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',
- version = '0.1.1',
- author = "Zope Community",
- author_email = "zope3-dev at zope.org",
- description = open("README.txt").read(),
- license = "ZPL 2.1",
- keywords = "layer zope zope3",
- url = 'http://svn.zope.org/z3c.layer',
- zip_safe = False,
- packages = find_packages('src'),
- include_package_data = True,
- package_dir = {'':'src'},
- namespace_packages = ['z3c'],
- install_requires = ['setuptools'],
- extras_require = dict(test=['zope.app.testing']),
+setup(
+ name = 'z3c.layer',
+ version = '0.2.0',
+ author = "Zope Community",
+ author_email = "zope3-dev at zope.org",
+ description = open("README.txt").read(),
+ license = "ZPL 2.1",
+ keywords = "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',
+ packages = find_packages('src'),
+ include_package_data = True,
+ package_dir = {'':'src'},
+ namespace_packages = ['z3c'],
+ extras_require = dict(
+ test=['zope.app.testing']
+ ),
+ 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,
)
Modified: z3c.layer/trunk/src/z3c/layer/pagelet/README.txt
===================================================================
--- z3c.layer/trunk/src/z3c/layer/pagelet/README.txt 2007-05-22 17:50:21 UTC (rev 75891)
+++ z3c.layer/trunk/src/z3c/layer/pagelet/README.txt 2007-05-22 18:19:46 UTC (rev 75892)
@@ -1,186 +1,186 @@
-======
-README
-======
-
-This package contains the pagelet 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.
-
-Important
----------
-
-This layer supports the z3c.pagelet pattern. this means every page e.g. the
-error page is based on the z3c.pagelet concept.
-
-
-IPageletBrowserLayer
---------------------
-
-The pagelet 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 IPageletBrowserLayer we use the testing skin defined in the
-tests package which uses the IPageletBrowserLayer 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
- <!DOCTYPE...
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <title>TestingSkin</title>
- </head>
- <body>
- test page
- <BLANKLINE>
- </body>
- </html>
- <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: HTTP Error 404: Not Found
-
- >>> print manager.contents
- <!DOCTYPE...
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <title>TestingSkin</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>
- <BLANKLINE>
- </body>
- </html>
- <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
- <!DOCTYPE...
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <title>TestingSkin</title>
- </head>
- <body>
- <div>
- <div>simply user error</div>
- </div>
- <BLANKLINE>
- </body>
- </html>
- <BLANKLINE>
-
-And check error view registred for
-``zope.interface.common.interfaces.IException``:
-
- >>> manager.open(skinURL + '/@@systemerror.html')
- >>> print manager.contents
- <!DOCTYPE...
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <title>TestingSkin</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>
- <BLANKLINE>
- </body>
- </html>
- <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: HTTP Error 401: Unauthorized
-
- >>> print unauthorized.contents
- <!DOCTYPE...
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <title>TestingSkin</title>
- </head>
- <body>
- <div>
- <br />
- <br />
- <h3>Unauthorized</h3>
- <br />
- <b>You are not authorized.</b>
- </div>
- <BLANKLINE>
- </body>
- </html>
- <BLANKLINE>
+======
+README
+======
+
+This package contains the pagelet 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.
+
+Important
+---------
+
+This layer supports the z3c.pagelet pattern. this means every page e.g. the
+error page is based on the z3c.pagelet concept.
+
+
+IPageletBrowserLayer
+--------------------
+
+The pagelet 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 IPageletBrowserLayer we use the testing skin defined in the
+tests package which uses the IPageletBrowserLayer 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
+ <!DOCTYPE...
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <title>TestingSkin</title>
+ </head>
+ <body>
+ test page
+ <BLANKLINE>
+ </body>
+ </html>
+ <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: HTTP Error 404: Not Found
+
+ >>> print manager.contents
+ <!DOCTYPE...
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <title>TestingSkin</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>
+ <BLANKLINE>
+ </body>
+ </html>
+ <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
+ <!DOCTYPE...
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <title>TestingSkin</title>
+ </head>
+ <body>
+ <div>
+ <div>simply user error</div>
+ </div>
+ <BLANKLINE>
+ </body>
+ </html>
+ <BLANKLINE>
+
+And check error view registred for
+``zope.interface.common.interfaces.IException``:
+
+ >>> manager.open(skinURL + '/@@systemerror.html')
+ >>> print manager.contents
+ <!DOCTYPE...
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <title>TestingSkin</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>
+ <BLANKLINE>
+ </body>
+ </html>
+ <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: HTTP Error 401: Unauthorized
+
+ >>> print unauthorized.contents
+ <!DOCTYPE...
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <title>TestingSkin</title>
+ </head>
+ <body>
+ <div>
+ <br />
+ <br />
+ <h3>Unauthorized</h3>
+ <br />
+ <b>You are not authorized.</b>
+ </div>
+ <BLANKLINE>
+ </body>
+ </html>
+ <BLANKLINE>
More information about the Checkins
mailing list