[Checkins] SVN: zc.async/trunk/src/zc/async/ Added zc.async.partial for backward compatibility.

Aaron Lehmann aaron at zope.com
Thu Aug 14 16:18:51 EDT 2008


Log message for revision 89843:
  Added zc.async.partial for backward compatibility.
  
  

Changed:
  U   zc.async/trunk/src/zc/async/CHANGES.txt
  A   zc.async/trunk/src/zc/async/partial.py

-=-
Modified: zc.async/trunk/src/zc/async/CHANGES.txt
===================================================================
--- zc.async/trunk/src/zc/async/CHANGES.txt	2008-08-14 17:03:32 UTC (rev 89842)
+++ zc.async/trunk/src/zc/async/CHANGES.txt	2008-08-14 20:18:50 UTC (rev 89843)
@@ -16,6 +16,8 @@
   backward-compatible.  It also will produce slightly smaller pickles for Jobs,
   but that was really not a particular goal.
 
+- Added zc.async.partial.Partial for backward compatibility purposes.
+
 1.4.1 (2008-07-30)
 ==================
 

Added: zc.async/trunk/src/zc/async/partial.py
===================================================================
--- zc.async/trunk/src/zc/async/partial.py	                        (rev 0)
+++ zc.async/trunk/src/zc/async/partial.py	2008-08-14 20:18:50 UTC (rev 89843)
@@ -0,0 +1,24 @@
+##############################################################################
+#
+# Copyright (c) 2006-2008 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.
+#
+##############################################################################
+import zc.async.job
+
+
+class Partial(zc.async.job.Job):
+    """ BBB This class exists for backward compatibility with databases that
+        BBB used prerelease versions of zc.async.  It has to stay forever."""
+
+    def __init__(self, *args, **kwargs):
+        raise Exception(
+            "zc.async.partial.Partial exists purely"
+            " for backward compatibility reasons.")


Property changes on: zc.async/trunk/src/zc/async/partial.py
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native



More information about the Checkins mailing list