[CMF-checkins] CVS: Products/CMFCore - DirectoryView.py:1.47.2.1
Yvo Schubbe
y.2004_ at wcm-solutions.de
Tue Aug 17 04:09:30 EDT 2004
Update of /cvs-repository/Products/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv1637/CMFCore
Modified Files:
Tag: CMF-1_5-branch
DirectoryView.py
Log Message:
- readded expandpath() on CMF-1_5-branch for backwards compatibility
=== Products/CMFCore/DirectoryView.py 1.47 => 1.47.2.1 ===
--- Products/CMFCore/DirectoryView.py:1.47 Thu Aug 12 11:07:39 2004
+++ Products/CMFCore/DirectoryView.py Tue Aug 17 04:09:29 2004
@@ -19,6 +19,7 @@
from os import path, listdir, stat
from sys import exc_info
from sys import platform
+from warnings import warn
from AccessControl import ClassSecurityInfo
from Acquisition import aq_inner, aq_parent
@@ -37,9 +38,19 @@
from permissions import AccessContentsInformation
from permissions import ManagePortal
from utils import _dtmldir
+from utils import expandpath as _new_expandpath
from utils import minimalpath
from utils import normalize
+
+def expandpath(p):
+ """ utils.expandpath() wrapper for backwards compatibility.
+ """
+ warn('expandpath() doesn\'t belong to DirectoryView anymore and will be '
+ 'removed from that module in CMF 1.6. Please import expandpath from '
+ 'the utils module.',
+ DeprecationWarning)
+ return _new_expandpath(p)
__reload_module__ = 0
More information about the CMF-checkins
mailing list