[DMS]fixing_bug_324823
authorHarry (Open ERP) <hmo@tinyerp.com>
Tue, 14 Apr 2009 08:47:50 +0000 (14:17 +0530)
committerHarry (Open ERP) <hmo@tinyerp.com>
Tue, 14 Apr 2009 08:47:50 +0000 (14:17 +0530)
bzr revid: hmo@tinyerp.com-20090414084750-a6nm5it3zopn2ozk

addons/document/ftpserver/abstracted_fs.py

index 3378960..6d3b942 100644 (file)
@@ -200,8 +200,8 @@ class abstracted_fs:
         return res
 
     # Ok
-    def fs2ftp(self, node):
-        res = node and ('/' + node.cr.dbname + '/' + _to_decode(node.path)) or '/'
+    def fs2ftp(self, node):        
+        res = node and ('/' + node.cr.dbname + '/' + _to_decode(self.ftpnorm(node.path))) or '/'
         return res
 
     # Ok
@@ -343,7 +343,7 @@ class abstracted_fs:
 
 
     # Ok
-    def chdir(self, path):
+    def chdir(self, path):        
         if not path:
             self.cwd='/'
             return None