[Zope-Checkins] SVN: Zope/branches/2.12/ Provide more forward compatibility shims
Hanno Schlichting
hannosch at hannosch.eu
Sun Aug 8 06:07:29 EDT 2010
Log message for revision 115538:
Provide more forward compatibility shims
Changed:
U Zope/branches/2.12/doc/CHANGES.rst
A Zope/branches/2.12/src/DocumentTemplate/security.py
A Zope/branches/2.12/src/OFS/role.py
A Zope/branches/2.12/src/Testing/testbrowser.py
A Zope/branches/2.12/src/Zope2/App/schema.py
A Zope/branches/2.12/src/Zope2/App/zcml.py
-=-
Modified: Zope/branches/2.12/doc/CHANGES.rst
===================================================================
--- Zope/branches/2.12/doc/CHANGES.rst 2010-08-07 21:05:05 UTC (rev 115537)
+++ Zope/branches/2.12/doc/CHANGES.rst 2010-08-08 10:07:28 UTC (rev 115538)
@@ -16,7 +16,8 @@
Features Added
++++++++++++++
-- OFS: Added forward-compatibility shim for UserFolder.
+- Added forward-compatibility shims for some frequently used modules moved in
+ Zope 2.13.
- Updated packages:
Added: Zope/branches/2.12/src/DocumentTemplate/security.py
===================================================================
--- Zope/branches/2.12/src/DocumentTemplate/security.py (rev 0)
+++ Zope/branches/2.12/src/DocumentTemplate/security.py 2010-08-08 10:07:28 UTC (rev 115538)
@@ -0,0 +1,18 @@
+##############################################################################
+#
+# Copyright (c) 2002 Zope Foundation and Contributors.
+#
+# 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
+#
+##############################################################################
+"""Add security system support to Document Templates
+"""
+
+# Forward compatibility with Zope 2.13
+from AccessControl.DTML import DTMLSecurityAPI
+from AccessControl.DTML import RestrictedDTML
Property changes on: Zope/branches/2.12/src/DocumentTemplate/security.py
___________________________________________________________________
Added: svn:eol-style
+ native
Added: Zope/branches/2.12/src/OFS/role.py
===================================================================
--- Zope/branches/2.12/src/OFS/role.py (rev 0)
+++ Zope/branches/2.12/src/OFS/role.py 2010-08-08 10:07:28 UTC (rev 115538)
@@ -0,0 +1,21 @@
+##############################################################################
+#
+# Copyright (c) 2002 Zope Foundation and Contributors.
+#
+# 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
+#
+##############################################################################
+"""Role manager
+"""
+
+# Forward compatibility with Zope 2.13
+from AccessControl.Role import RoleManager as BaseRoleManager
+
+class RoleManager(BaseRoleManager):
+ """Forward compatibility shim.
+ """
Property changes on: Zope/branches/2.12/src/OFS/role.py
___________________________________________________________________
Added: svn:eol-style
+ native
Added: Zope/branches/2.12/src/Testing/testbrowser.py
===================================================================
--- Zope/branches/2.12/src/Testing/testbrowser.py (rev 0)
+++ Zope/branches/2.12/src/Testing/testbrowser.py 2010-08-08 10:07:28 UTC (rev 115538)
@@ -0,0 +1,23 @@
+##############################################################################
+#
+# Copyright (c) 2006 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.
+#
+##############################################################################
+"""Support for using zope.testbrowser from Zope2.
+
+Mostly just copy and paste from zope.testbrowser.testing.
+"""
+
+# Forward compatibility with Zope 2.13
+from Products.Five.testbrowser import Browser
+from Products.Five.testbrowser import PublisherConnection
+from Products.Five.testbrowser import PublisherHTTPHandler
+from Products.Five.testbrowser import PublisherMechanizeBrowser
Property changes on: Zope/branches/2.12/src/Testing/testbrowser.py
___________________________________________________________________
Added: svn:eol-style
+ native
Added: Zope/branches/2.12/src/Zope2/App/schema.py
===================================================================
--- Zope/branches/2.12/src/Zope2/App/schema.py (rev 0)
+++ Zope/branches/2.12/src/Zope2/App/schema.py 2010-08-08 10:07:28 UTC (rev 115538)
@@ -0,0 +1,16 @@
+##############################################################################
+#
+# Copyright (c) 2004, 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.
+#
+##############################################################################
+
+# Forward compatibility with Zope 2.13
+from Products.Five.schema import Zope2VocabularyRegistry
Property changes on: Zope/branches/2.12/src/Zope2/App/schema.py
___________________________________________________________________
Added: svn:eol-style
+ native
Added: Zope/branches/2.12/src/Zope2/App/zcml.py
===================================================================
--- Zope/branches/2.12/src/Zope2/App/zcml.py (rev 0)
+++ Zope/branches/2.12/src/Zope2/App/zcml.py 2010-08-08 10:07:28 UTC (rev 115538)
@@ -0,0 +1,23 @@
+##############################################################################
+#
+# Copyright (c) 2004, 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.
+#
+##############################################################################
+"""ZCML machinery
+"""
+
+# Forward compatibility with Zope 2.13
+# _context and _initialized are module level variables and are frequently
+# overridden directly in code
+from Products.Five.zcml import cleanUp
+from Products.Five.zcml import load_config
+from Products.Five.zcml import load_site
+from Products.Five.zcml import load_string
Property changes on: Zope/branches/2.12/src/Zope2/App/zcml.py
___________________________________________________________________
Added: svn:eol-style
+ native
More information about the Zope-Checkins
mailing list