← Back to team overview

openerp-community-reviewer team mailing list archive

[Merge] lp:~arthru/server-env-tools/filestore_on_fs into lp:server-env-tools

 

arthru has proposed merging lp:~arthru/server-env-tools/filestore_on_fs into lp:server-env-tools.

Requested reviews:
  Server Environment And Tools Core Editors (server-env-tools-core-editors)

For more details, see:
https://code.launchpad.net/~arthru/server-env-tools/filestore_on_fs/+merge/205827

This merge proposal proposes a module that permits to store documents on file system.
-- 
https://code.launchpad.net/~arthru/server-env-tools/filestore_on_fs/+merge/205827
Your team Server Environment And Tools Core Editors is requested to review the proposed merge of lp:~arthru/server-env-tools/filestore_on_fs into lp:server-env-tools.
=== added directory 'filestore_on_fs'
=== added file 'filestore_on_fs/__init__.py'
--- filestore_on_fs/__init__.py	1970-01-01 00:00:00 +0000
+++ filestore_on_fs/__init__.py	2014-02-11 17:54:37 +0000
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    This module copyright (C) 2014 Akretion (<http://www.akretion.com>).
+#
+#    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 <http://www.gnu.org/licenses/>.
+#
+##############################################################################

=== added file 'filestore_on_fs/__openerp__.py'
--- filestore_on_fs/__openerp__.py	1970-01-01 00:00:00 +0000
+++ filestore_on_fs/__openerp__.py	2014-02-11 17:54:37 +0000
@@ -0,0 +1,43 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    This module copyright (C) 2014 Akretion (<http://www.akretion.com>).
+#
+#    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 <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+{
+    "name" : "Store files on filesystem",
+    "version" : "1.0",
+    "author" : "Akretion",
+    "complexity": "normal",
+    "description": """
+This module enable storage of documents on the filesystem.
+
+The files will end at the filestore subfolder in your openerp package. You should then find this directory in order to make links (as you should not store your files in the code), and configure your backups.
+    """,
+    "category" : "",
+    "depends" : [
+		'base'
+	],
+    "data" : [
+        'data.xml',
+    ],
+    "auto_install": False,
+    "installable": True,
+    "external_dependencies" : {
+        'python' : [],
+    },
+}

=== added file 'filestore_on_fs/data.xml'
--- filestore_on_fs/data.xml	1970-01-01 00:00:00 +0000
+++ filestore_on_fs/data.xml	2014-02-11 17:54:37 +0000
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<openerp>
+<data>
+    <record id="filestore_on_fs.config_parameter_filsystem"
+            model="ir.config_parameter">
+        <field name="key">ir_attachment.location</field>
+        <field name="value">file:///filestore</field>
+    </record>
+</data>
+</openerp>


Follow ups