[DMS]fixing_bug_324823

bzr revid: hmo@tinyerp.com-20090414101732-7m2rppi0alq5r91b
This commit is contained in:
Harry (Open ERP) 2009-04-14 15:47:32 +05:30
parent 34b6b79619
commit 5b1450464c
1 changed files with 9 additions and 1 deletions

View File

@ -201,7 +201,15 @@ class abstracted_fs:
# Ok
def fs2ftp(self, node):
res = node and ('/' + node.cr.dbname + '/' + _to_decode(self.ftpnorm(node.path))) or '/'
res='/'
if node:
res=os.path.normpath(node.path)
res = res.replace("\\", "/")
while res[:2] == '//':
res = res[1:]
res='/' + node.cr.dbname + '/' + _to_decode(res)
#res = node and ('/' + node.cr.dbname + '/' + _to_decode(self.ftpnorm(node.path))) or '/'
return res
# Ok