Permalink
Browse files

add a deprecation warning message to the behavior

  • Loading branch information...
1 parent 22d8f70 commit 1b060f156053077347937b32907199b0f4987cfd @hvelarde hvelarde committed Dec 13, 2012
Showing with 9 additions and 0 deletions.
  1. +2 −0 docs/HISTORY.txt
  2. +7 −0 src/collective/upload/behaviors.py
View
@@ -6,6 +6,8 @@ Because you have to know where your towel is.
1.0b3 (unreleased)
^^^^^^^^^^^^^^^^^^
+- Add deprecation warning message on the IMultipleUpload behavior. [hvelarde]
+
- Tested compatibility with Plone 4.3. [hvelarde]
- Update package documentation. [hvelarde]
@@ -1,5 +1,12 @@
+import warnings
+
from zope.interface import Interface
class IMultipleUpload(Interface):
""" just the behavior interface """
+
+ warnings.warn(
+ "Use of the IMultipleUpload behavior is no longer needed to have "
+ "access to the multiple file upload widget and will be removed in "
+ "collective.upload v1.0.", DeprecationWarning, stacklevel=2)

0 comments on commit 1b060f1

Please sign in to comment.