From 013dc83400af445e5787ce23e4c2bb23a48b7f39 Mon Sep 17 00:00:00 2001 From: Nicolas Bessi Date: Tue, 9 Sep 2014 14:23:46 +0200 Subject: [PATCH] Fix typo in dir name --- server_environment_files_sample/__init__.py | 20 ++++++++ .../__openerp__.py | 48 +++++++++++++++++++ .../default/base.conf | 10 ++++ .../default/mytopic.conf | 15 ++++++ server_environment_files_sample/dev/base.conf | 8 ++++ .../dev/mytopic.conf | 9 ++++ .../i18n/server_environment_files.pot | 16 +++++++ .../preprod/mytopic.conf | 7 +++ .../prod/base.conf | 8 ++++ .../prod/mytopic.conf | 14 ++++++ 10 files changed, 155 insertions(+) create mode 100644 server_environment_files_sample/__init__.py create mode 100644 server_environment_files_sample/__openerp__.py create mode 100644 server_environment_files_sample/default/base.conf create mode 100644 server_environment_files_sample/default/mytopic.conf create mode 100644 server_environment_files_sample/dev/base.conf create mode 100644 server_environment_files_sample/dev/mytopic.conf create mode 100644 server_environment_files_sample/i18n/server_environment_files.pot create mode 100644 server_environment_files_sample/preprod/mytopic.conf create mode 100644 server_environment_files_sample/prod/base.conf create mode 100644 server_environment_files_sample/prod/mytopic.conf diff --git a/server_environment_files_sample/__init__.py b/server_environment_files_sample/__init__.py new file mode 100644 index 0000000..98a6c97 --- /dev/null +++ b/server_environment_files_sample/__init__.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Author Nicolas Bessi. Copyright Camptocamp SA +# Author Florent Xicluna. Copyright Wingo SA +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +############################################################################## diff --git a/server_environment_files_sample/__openerp__.py b/server_environment_files_sample/__openerp__.py new file mode 100644 index 0000000..fb16a51 --- /dev/null +++ b/server_environment_files_sample/__openerp__.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Adapted by Nicolas Bessi. Copyright Camptocamp SA +# Based on Florent Xicluna original code. Copyright Wingo SA +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +############################################################################## + +{ + "name": "Example server configuration environment files repository module", + "version": "1.0", + "depends": ["base"], + "author": "Camptocamp", + "description": """\ +File store for environment file sample module +============================================= + +This module provides a file store for classical configuration by +environment file pattern into OpenERP provided by the +`server_environment` addon. Please look at this module for more info +and doc. + +Note: you should not install this module 'as is', since it is an +example module, but rather adapt it to your needs, and ensure your +version of the module gets picked up by OpenERP. This can be ensured +by putting the directory where your version of +server_environment_files lives before this one in the addons-path +variable of the OpenERP configuration file. + """, + "website": "http://www.camptocamp.com", + "category": "Tools", + "data": [], + "installable": True, + "active": False, +} diff --git a/server_environment_files_sample/default/base.conf b/server_environment_files_sample/default/base.conf new file mode 100644 index 0000000..bf92248 --- /dev/null +++ b/server_environment_files_sample/default/base.conf @@ -0,0 +1,10 @@ +[misc] +completed_state = 13 +smtp_server = xxx.xxx.ch + +[custom_ged] +ged_folder = /my_mounting_point/ged/ + +[wkhtml2pdf] +lib_path = /xxx/xxx/lib/wkhtmltopdf-linux-i386-0-9-9 + diff --git a/server_environment_files_sample/default/mytopic.conf b/server_environment_files_sample/default/mytopic.conf new file mode 100644 index 0000000..c896c90 --- /dev/null +++ b/server_environment_files_sample/default/mytopic.conf @@ -0,0 +1,15 @@ +[external_service] +CONSTA = D01 +CONSTB = 1 +CONSTC = -23 + + +[external_service.ftp] +server = 127.0.0.1 +in_path = /in/ +out_path= /out/ +user = toto +password = my_dev_password +tls = 0 +port = 8074 + diff --git a/server_environment_files_sample/dev/base.conf b/server_environment_files_sample/dev/base.conf new file mode 100644 index 0000000..72f7541 --- /dev/null +++ b/server_environment_files_sample/dev/base.conf @@ -0,0 +1,8 @@ +[misc] +smtp_server = dev.xxx.xxx.ch + +[custom_ged] +ged_folder = /tmp/ged/ + +[wkhtml2pdf] +lib_path = /myHome/lib/wkhtmltopdf-linux-i386-0-9-9 diff --git a/server_environment_files_sample/dev/mytopic.conf b/server_environment_files_sample/dev/mytopic.conf new file mode 100644 index 0000000..00cfb03 --- /dev/null +++ b/server_environment_files_sample/dev/mytopic.conf @@ -0,0 +1,9 @@ +[external_service] +CONSTC = -25 + + +[external_service.ftp] +user = toto +password = toto + + diff --git a/server_environment_files_sample/i18n/server_environment_files.pot b/server_environment_files_sample/i18n/server_environment_files.pot new file mode 100644 index 0000000..c83ab22 --- /dev/null +++ b/server_environment_files_sample/i18n/server_environment_files.pot @@ -0,0 +1,16 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-03-14 17:41+0000\n" +"PO-Revision-Date: 2014-03-14 17:41+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + diff --git a/server_environment_files_sample/preprod/mytopic.conf b/server_environment_files_sample/preprod/mytopic.conf new file mode 100644 index 0000000..94a0c21 --- /dev/null +++ b/server_environment_files_sample/preprod/mytopic.conf @@ -0,0 +1,7 @@ +[external_service] +CONSTC = -25 + + +[external_service.ftp] +user = toto +password = preprod_toto diff --git a/server_environment_files_sample/prod/base.conf b/server_environment_files_sample/prod/base.conf new file mode 100644 index 0000000..08d04b2 --- /dev/null +++ b/server_environment_files_sample/prod/base.conf @@ -0,0 +1,8 @@ +[misc] +smtp_server = prod.xxx.xxx.ch + +[custom_ged] +ged_folder = /my_mounting_point/ged/ + +[wkhtml2pdf] +lib_path = /xxx/xxx/lib/wkhtmltopdf-linux-i386-0-9-9 \ No newline at end of file diff --git a/server_environment_files_sample/prod/mytopic.conf b/server_environment_files_sample/prod/mytopic.conf new file mode 100644 index 0000000..71fb81d --- /dev/null +++ b/server_environment_files_sample/prod/mytopic.conf @@ -0,0 +1,14 @@ +[external_service] +CONSTA = D01 +CONSTB = 1 +CONSTC = -23 + + +[external_service.ftp] +server = my_prod_server +in_path = /in/ +out_path= /out/ +user = prod_user +password = my_prod_password +tls = 0 +port = 21 \ No newline at end of file