diff --git a/addons/document/__init__.py b/addons/document/__init__.py
index a9810a8b7b8..f624cfa850b 100644
--- a/addons/document/__init__.py
+++ b/addons/document/__init__.py
@@ -25,8 +25,6 @@ import document_storage
import document_directory
import directory_content
import directory_report
-import doc_conf_wizard
import document
-import ftpserver
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/document/__terp__.py b/addons/document/__terp__.py
index be9eb6a9d3f..edd5ebe83af 100644
--- a/addons/document/__terp__.py
+++ b/addons/document/__terp__.py
@@ -24,8 +24,7 @@
'name': 'Integrated Document Management System',
'version': '1.99',
'category': 'Generic Modules/Others',
- 'description': """This is a complete document management system:
- * FTP Interface
+ 'description': """This is a complete document management system:
* User Authentication
* Document Indexation
""",
diff --git a/addons/document/document_view.xml b/addons/document/document_view.xml
index babc5af33b3..e23b3ac5025 100644
--- a/addons/document/document_view.xml
+++ b/addons/document/document_view.xml
@@ -146,19 +146,7 @@
-
-
- Browse Files
- ftp://localhost:8021/
-
-
+ parent="menu_document_configuration"/>
ir.attachment
@@ -301,42 +289,7 @@
-
-
-
- Auto Configure Directory
- document.configuration.wizard
- form
-
-
-
-
-
-
- Auto Configure Directory
- ir.actions.act_window
- document.configuration.wizard
- form
- form
- new
-
-
-
- Auto Configure Directory
- This wizard will configure the URL of the server of the document management system.
-
-
-
+
).
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+import doc_conf_wizard
+import ftpserver
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/document_ftp/__terp__.py b/addons/document_ftp/__terp__.py
new file mode 100644
index 00000000000..13da099768c
--- /dev/null
+++ b/addons/document_ftp/__terp__.py
@@ -0,0 +1,43 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2009 Tiny SPRL ().
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+
+{
+ 'name': 'Integrated FTP Server with Document Management System',
+ 'version': '1.99',
+ 'category': 'Generic Modules/Others',
+ 'description': """This is a support FTP Interface with document management system:
+""",
+ 'author': 'Tiny',
+ 'website': 'http://www.openerp.com',
+ 'depends': ['base', 'document'],
+ 'init_xml': [],
+ 'update_xml': [
+ 'document_ftp_view.xml',
+ 'security/ir.model.access.csv'
+ ],
+ 'demo_xml': [],
+ 'installable': True,
+ 'active': False,
+ 'certificate': None,
+}
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/document/doc_conf_wizard.py b/addons/document_ftp/doc_conf_wizard.py
similarity index 100%
rename from addons/document/doc_conf_wizard.py
rename to addons/document_ftp/doc_conf_wizard.py
diff --git a/addons/document_ftp/document_ftp_view.xml b/addons/document_ftp/document_ftp_view.xml
new file mode 100644
index 00000000000..793dbfb7dea
--- /dev/null
+++ b/addons/document_ftp/document_ftp_view.xml
@@ -0,0 +1,56 @@
+
+
+
+ Browse Files
+ ftp://localhost:8021/
+
+
+
+
+
+
+
+ Auto Configure Directory
+ document.configuration.wizard
+ form
+
+
+
+
+
+
+ Auto Configure Directory
+ ir.actions.act_window
+ document.configuration.wizard
+ form
+ form
+ new
+
+
+
+ Auto Configure Directory
+ This wizard will configure the URL of the server of the document management system.
+
+
+
+
+
+
+
+
diff --git a/addons/document/ftpserver/__init__.py b/addons/document_ftp/ftpserver/__init__.py
similarity index 100%
rename from addons/document/ftpserver/__init__.py
rename to addons/document_ftp/ftpserver/__init__.py
diff --git a/addons/document/ftpserver/abstracted_fs.py b/addons/document_ftp/ftpserver/abstracted_fs.py
similarity index 99%
rename from addons/document/ftpserver/abstracted_fs.py
rename to addons/document_ftp/ftpserver/abstracted_fs.py
index 46ddba18128..34a62e8683a 100644
--- a/addons/document/ftpserver/abstracted_fs.py
+++ b/addons/document_ftp/ftpserver/abstracted_fs.py
@@ -205,7 +205,9 @@ class abstracted_fs:
def fs2ftp(self, node):
res='/'
if node:
- res = os.path.normpath(''.join(node.full_path()))
+ paths = node.full_path()
+ paths = map(lambda x: '/' +x, paths)
+ res = os.path.normpath(''.join(paths))
res = res.replace("\\", "/")
while res[:2] == '//':
res = res[1:]
diff --git a/addons/document/ftpserver/authorizer.py b/addons/document_ftp/ftpserver/authorizer.py
similarity index 100%
rename from addons/document/ftpserver/authorizer.py
rename to addons/document_ftp/ftpserver/authorizer.py
diff --git a/addons/document/ftpserver/ftpserver.py b/addons/document_ftp/ftpserver/ftpserver.py
similarity index 100%
rename from addons/document/ftpserver/ftpserver.py
rename to addons/document_ftp/ftpserver/ftpserver.py
diff --git a/addons/document_ftp/security/ir.model.access.csv b/addons/document_ftp/security/ir.model.access.csv
new file mode 100644
index 00000000000..c9c082f4397
--- /dev/null
+++ b/addons/document_ftp/security/ir.model.access.csv
@@ -0,0 +1,3 @@
+"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
+"access_document_configuation_wizard","document.configuration.wizard document manager","model_document_configuration_wizard","document.group_document_manager",1,1,1,1
+"access_document_configuation_wizard_sytem","document.configuration.wizard group system","model_document_configuration_wizard","base.group_system",1,1,1,1