[wpdev-commits] xmlscripts/scripts webadmin.py,1.9,1.10
Brought to you by:
rip,
thiagocorrea
|
From: <dar...@us...> - 2003-09-13 02:03:06
|
Update of /cvsroot/wpdev/xmlscripts/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv12161
Modified Files:
webadmin.py
Log Message:
Fixed an issue related to Linux paths
Index: webadmin.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/webadmin.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** webadmin.py 9 Aug 2003 05:18:22 -0000 1.9
--- webadmin.py 13 Sep 2003 02:03:03 -0000 1.10
***************
*** 91,95 ****
"""
file = urllib.unquote(uri)
! file.replace('\\', '/')
words = file.split('/')
words = filter(None, words)
--- 91,95 ----
"""
file = urllib.unquote(uri)
! file.replace("\\", '/')
words = file.split('/')
words = filter(None, words)
***************
*** 127,130 ****
--- 127,132 ----
scriptname = dir + '/' + script
scriptfile = self.translate_path(scriptname)
+ scriptfile = os.path.normpath( scriptfile )
+
if not os.path.exists(scriptfile):
self.send_error(404, "No such CGI script (%s)" % `scriptname`)
***************
*** 239,243 ****
try:
! filepath = os.path.normpath(os.path.abspath('web\\'))
self.httpd = Webserver( ( '', self.port ), filepath )
except:
--- 241,245 ----
try:
! filepath = os.path.normpath( os.path.abspath( 'web/' ) )
self.httpd = Webserver( ( '', self.port ), filepath )
except:
|