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)
#
_______________________________________________
CMF-checkins mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/cmf-checkins