[CMF-checkins] SVN: CMF/branches/1.6/CMFCore/ Show source of deprecated usage.

Tres Seaver tseaver at palladion.com
Tue Dec 6 10:32:14 EST 2005


Log message for revision 40595:
  Show source of deprecated usage.

Changed:
  U   CMF/branches/1.6/CMFCore/WorkflowCore.py
  U   CMF/branches/1.6/CMFCore/utils.py

-=-
Modified: CMF/branches/1.6/CMFCore/WorkflowCore.py
===================================================================
--- CMF/branches/1.6/CMFCore/WorkflowCore.py	2005-12-06 15:30:24 UTC (rev 40594)
+++ CMF/branches/1.6/CMFCore/WorkflowCore.py	2005-12-06 15:32:13 UTC (rev 40595)
@@ -68,7 +68,7 @@
     def __init__(self, method, id=None, reindex=1):
         warn('WorkflowMethod() alias WorkflowAction() is deprecated and will '
              'be removed in CMF 2.0.',
-             DeprecationWarning)
+             DeprecationWarning, stacklevel=2)
         self._m = method
         if id is None:
             id = method.__name__

Modified: CMF/branches/1.6/CMFCore/utils.py
===================================================================
--- CMF/branches/1.6/CMFCore/utils.py	2005-12-06 15:30:24 UTC (rev 40594)
+++ CMF/branches/1.6/CMFCore/utils.py	2005-12-06 15:32:13 UTC (rev 40595)
@@ -765,7 +765,7 @@
     """
     warn('format_stx() will be removed in CMF 2.0. Please use '
          'StructuredText.StructuredText.HTML instead.',
-         DeprecationWarning)
+         DeprecationWarning, stacklevel=2)
     return HTML(text, level=level, header=0)
 
 #



More information about the CMF-checkins mailing list