[CMF-checkins] SVN: CMF/branches/1.5/CMFSetup/workflow.py
string.rsplit is Python 2.4 only.
Stefan H. Holek
stefan at epy.co.at
Tue Sep 5 05:08:19 EDT 2006
Log message for revision 69967:
string.rsplit is Python 2.4 only.
Changed:
U CMF/branches/1.5/CMFSetup/workflow.py
-=-
Modified: CMF/branches/1.5/CMFSetup/workflow.py
===================================================================
--- CMF/branches/1.5/CMFSetup/workflow.py 2006-09-05 00:12:34 UTC (rev 69966)
+++ CMF/branches/1.5/CMFSetup/workflow.py 2006-09-05 09:08:17 UTC (rev 69967)
@@ -200,7 +200,8 @@
filename = script_info['filename']
if filename:
if '/' in filename:
- subdir, filename = filename.rsplit('/', 1)
+ last = filename.rindex('/')
+ subdir, filename = filename[:last], filename[last+1:]
else:
subdir = ''
context.writeDataFile(filename,
More information about the CMF-checkins
mailing list