You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
3.3 KiB

  1. # -*- coding: utf-8 -*-
  2. ##############################################################################
  3. #
  4. # Adapted by Nicolas Bessi. Copyright Camptocamp SA
  5. # Based on Florent Xicluna original code. Copyright Wingo SA
  6. #
  7. # This program is free software: you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation, either version 3 of the License, or
  10. # (at your option) any later version.
  11. #
  12. # This program is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. #
  20. ##############################################################################
  21. {
  22. "name": "server configuration environment files",
  23. "version": "8.0.1.1.0",
  24. "depends": ["base", "server_environment_files"],
  25. "author": "Camptocamp,Odoo Community Association (OCA)",
  26. "description": """\
  27. Environment file pattern for OpenERP
  28. ====================================
  29. This module provides a classical configuration by environnement file
  30. pattern into OpenERP. Based on code written by WinGo and Camptocamp.
  31. This module allows you to use the classical environment file pattern
  32. by reading a directive call `running_env` in the OpenERP configuration
  33. file::
  34. [options]
  35. running_env=dev / prod / etc.
  36. We intended to add a server command line but there is no correct way
  37. to do it.
  38. This method allows you to keep your settings into a module instead of
  39. using config files that might be mixed with openerprc or altered. It
  40. is an alternative way to the base config file for such configuration
  41. needs . All your configurations will be read only and accessible
  42. under the admin menu. If you are not in the 'dev' environment you
  43. will not be able to see the values contained in keys named 'passw'.
  44. At the current time, the module does not allow to set low level
  45. attributes such as database server, etc. .
  46. The first goal of the module is to ensure that OpenERP will never mess
  47. up the external system. Once installed, profile is mandatory. We do
  48. not want to launch an instance in the dev environment on a production
  49. server.
  50. The configuration files are stored in the `server_environment_files`
  51. module, and user config parser module syntax. Look at the module to
  52. get some examples. The `default` configuration are stored in the
  53. `default/` directory. You can add one directory for each environment
  54. you want to define, named after the environment. All config defined in
  55. non-default environments will override or complement the default
  56. config. If your attibutes contain `passw`, it will only be shown in
  57. the `dev` environment.
  58. Example usage
  59. -------------
  60. ::
  61. from server_environment import serv_config
  62. for key, value in serv_config.items('external_service.ftp'):
  63. print (key, value)
  64. serv_config.get('external_service.ftp', 'tls')
  65. """,
  66. "website": "http://www.camptocamp.com",
  67. "license": "GPL-3 or any later version",
  68. "category": "Tools",
  69. "data": [
  70. 'serv_config.xml',
  71. ],
  72. 'installable': False,
  73. "active": False,
  74. }