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

Tres Seaver tseaver at palladion.com
Tue Dec 6 10:30:25 EST 2005


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

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

-=-
Modified: CMF/branches/1.5/CMFCore/WorkflowCore.py
===================================================================
--- CMF/branches/1.5/CMFCore/WorkflowCore.py	2005-12-06 15:15:43 UTC (rev 40593)
+++ CMF/branches/1.5/CMFCore/WorkflowCore.py	2005-12-06 15:30:24 UTC (rev 40594)
@@ -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.5/CMFCore/utils.py
===================================================================
--- CMF/branches/1.5/CMFCore/utils.py	2005-12-06 15:15:43 UTC (rev 40593)
+++ CMF/branches/1.5/CMFCore/utils.py	2005-12-06 15:30:24 UTC (rev 40594)
@@ -767,7 +767,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