[Zope3-checkins] SVN: Zope3/trunk/ - zope.security.decorator
doctests were not running due to missing boilerplate code.
Baiju M
baiju.m.mail at gmail.com
Sun Oct 8 06:11:19 EDT 2006
Log message for revision 70566:
- zope.security.decorator doctests were not running due to missing boilerplate code.
- zope.decorator is no more a dependancy for zope.location and zope.app
Changed:
U Zope3/trunk/doc/CHANGES.txt
U Zope3/trunk/src/zope/app/DEPENDENCIES.cfg
U Zope3/trunk/src/zope/location/DEPENDENCIES.cfg
U Zope3/trunk/src/zope/security/decorator.py
A Zope3/trunk/src/zope/security/tests/test_decorator.py
-=-
Modified: Zope3/trunk/doc/CHANGES.txt
===================================================================
--- Zope3/trunk/doc/CHANGES.txt 2006-10-08 08:41:15 UTC (rev 70565)
+++ Zope3/trunk/doc/CHANGES.txt 2006-10-08 10:11:18 UTC (rev 70566)
@@ -129,6 +129,11 @@
Bug fixes
+ - As part of zope.decorator refactoring, its dependancy were not removed
+ from DEPENDENCIES.cfg in zope.app and zope.location. Also
+ zope.security.decorator doctests were not running due to missing
+ boilerplate code.
+
- When a credential plugin redirects to the login page, it memorizes
the requested URL in the 'camefrom' GET parameter.
The 'camefrom' parameter was not accurate.
Modified: Zope3/trunk/src/zope/app/DEPENDENCIES.cfg
===================================================================
--- Zope3/trunk/src/zope/app/DEPENDENCIES.cfg 2006-10-08 08:41:15 UTC (rev 70565)
+++ Zope3/trunk/src/zope/app/DEPENDENCIES.cfg 2006-10-08 10:11:18 UTC (rev 70566)
@@ -11,7 +11,6 @@
zope.copypastemove
zope.contenttype
zope.datetime
-zope.decorator
zope.deferredimport
zope.deprecation
zope.dottedname
Modified: Zope3/trunk/src/zope/location/DEPENDENCIES.cfg
===================================================================
--- Zope3/trunk/src/zope/location/DEPENDENCIES.cfg 2006-10-08 08:41:15 UTC (rev 70565)
+++ Zope3/trunk/src/zope/location/DEPENDENCIES.cfg 2006-10-08 10:11:18 UTC (rev 70566)
@@ -1,7 +1,6 @@
# zope.app only for ISite
zope.app
zope.component
-zope.decorator
zope.interface
zope.proxy
zope.schema
Modified: Zope3/trunk/src/zope/security/decorator.py
===================================================================
--- Zope3/trunk/src/zope/security/decorator.py 2006-10-08 08:41:15 UTC (rev 70565)
+++ Zope3/trunk/src/zope/security/decorator.py 2006-10-08 10:11:18 UTC (rev 70566)
@@ -61,7 +61,7 @@
>>> fooChecker.check(foo, 'a')
>>> fooChecker.check(foo, 'b') # doctest: +ELLIPSIS
Traceback (most recent call last):
- ForbiddenAttribute: ('b', <zope.decorator.Foo object ...>)
+ ForbiddenAttribute: ('b', <zope.security.decorator.Foo object ...>)
and that a `Wrapper` object uses `wrappeChecker`:
@@ -71,7 +71,7 @@
>>> wrapperChecker.check(wrapper, 'b')
>>> wrapperChecker.check(wrapper, 'a') # doctest: +ELLIPSIS
Traceback (most recent call last):
- ForbiddenAttribute: ('a', <zope.decorator.Foo object ...>)
+ ForbiddenAttribute: ('a', <zope.security.decorator.Foo object ...>)
(Note that the object description says `Foo` because the object is a
proxy and generally looks and acts like the object it's proxying.)
@@ -96,7 +96,7 @@
'a'
>>> secure_foo.b # doctest: +ELLIPSIS
Traceback (most recent call last):
- ForbiddenAttribute: ('b', <zope.decorator.Foo object ...>)
+ ForbiddenAttribute: ('b', <zope.security.decorator.Foo object ...>)
when we wrap the secured `foo`:
Added: Zope3/trunk/src/zope/security/tests/test_decorator.py
===================================================================
--- Zope3/trunk/src/zope/security/tests/test_decorator.py 2006-10-08 08:41:15 UTC (rev 70565)
+++ Zope3/trunk/src/zope/security/tests/test_decorator.py 2006-10-08 10:11:18 UTC (rev 70566)
@@ -0,0 +1,28 @@
+##############################################################################
+#
+# Copyright (c) 2003 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.
+#
+##############################################################################
+"""Context Tests
+
+$Id: tests.py 66343 2006-04-03 04:59:49Z philikon $
+"""
+import unittest
+import doctest
+
+def test_suite():
+ suite = doctest.DocTestSuite()
+ suite.addTest(doctest.DocTestSuite('zope.security.decorator'))
+ return suite
+
+
+if __name__ == '__main__':
+ unittest.main()
Property changes on: Zope3/trunk/src/zope/security/tests/test_decorator.py
___________________________________________________________________
Name: svn:eol-style
+ native
More information about the Zope3-Checkins
mailing list