[Zope-Checkins] SVN: Zope/branches/2.12/ - added forward-compatibility shim for UserFolder (this makes it easier to write CMF migration code)

Yvo Schubbe y.2010 at wcm-solutions.de
Sun Aug 1 06:59:28 EDT 2010


Log message for revision 115314:
  - added forward-compatibility shim for UserFolder (this makes it easier to write CMF migration code)

Changed:
  U   Zope/branches/2.12/doc/CHANGES.rst
  A   Zope/branches/2.12/src/OFS/userfolder.py

-=-
Modified: Zope/branches/2.12/doc/CHANGES.rst
===================================================================
--- Zope/branches/2.12/doc/CHANGES.rst	2010-08-01 10:56:13 UTC (rev 115313)
+++ Zope/branches/2.12/doc/CHANGES.rst	2010-08-01 10:59:27 UTC (rev 115314)
@@ -16,6 +16,8 @@
 Features Added
 ++++++++++++++
 
+- OFS: Added forward-compatibility shim for UserFolder.
+
 - Updated packages:
 
   - DateTime = 2.12.5

Added: Zope/branches/2.12/src/OFS/userfolder.py
===================================================================
--- Zope/branches/2.12/src/OFS/userfolder.py	                        (rev 0)
+++ Zope/branches/2.12/src/OFS/userfolder.py	2010-08-01 10:59:27 UTC (rev 115314)
@@ -0,0 +1,26 @@
+##############################################################################
+#
+# 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.
+#
+##############################################################################
+"""User folders
+"""
+
+from AccessControl.User import UserFolder as BaseUserFolder
+
+
+class UserFolder(BaseUserFolder):
+
+    """Forward compatibility shim.
+    """
+
+    def __init__(self):
+        super(UserFolder, self).__init__()
+        self._ofs_migrated = True


Property changes on: Zope/branches/2.12/src/OFS/userfolder.py
___________________________________________________________________
Added: svn:eol-style
   + native



More information about the Zope-Checkins mailing list