SVN: CMF/branches/1.5/CMFSetup/workflow.py string.rsplit is Python 2.4 only.

"Stefan H. Holek" <[email protected]>
Newsgroups gmane.comp.web.zope.cmf.cvs
Message-ID <[email protected]>
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,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.