[UPD] README.rst
This commit is contained in:
parent
35a0f2610e
commit
ebecd3ebdc
|
|
@ -113,7 +113,7 @@ A public file, containing that will contain public variables::
|
|||
|
||||
# server environment options
|
||||
export SERVER_ENV_CONFIG="
|
||||
[storage_backend.my-sftp]
|
||||
[storage_backend.my_sftp]
|
||||
sftp_server=10.10.10.10
|
||||
sftp_login=foo
|
||||
sftp_port=22200
|
||||
|
|
@ -127,10 +127,18 @@ A second file which is encrypted and contains secrets::
|
|||
export DB_PASSWORD='xxxxxxxxx'
|
||||
# server environment options
|
||||
export SERVER_ENV_CONFIG_SECRET="
|
||||
[storage_backend.my-sftp]
|
||||
[storage_backend.my_sftp]
|
||||
sftp_password=xxxxxxxxx
|
||||
"
|
||||
|
||||
**WARNING**
|
||||
|
||||
`my_sftp` must match the name of the record.
|
||||
If you want something more reliable use `server.env.techname.mixin`
|
||||
and use `tech_name` field to reference records.
|
||||
See "USAGE".
|
||||
|
||||
|
||||
Default values
|
||||
~~~~~~~~~~~~~~
|
||||
|
||||
|
|
@ -169,12 +177,23 @@ by an override of ``_server_env_fields``.
|
|||
Read the documentation of the class and methods in `models/server_env_mixin.py
|
||||
<models/server_env_mixin.py>`__.
|
||||
|
||||
|
||||
If you want to have a technical name to reference::
|
||||
|
||||
class StorageBackend(models.Model):
|
||||
_name = "storage.backend"
|
||||
_inherit = ["storage.backend", "server.env.techname.mixin", "server.env.mixin"]
|
||||
|
||||
[...]
|
||||
|
||||
Known issues / Roadmap
|
||||
======================
|
||||
|
||||
* it is not possible to set the environment from the command line. A
|
||||
configuration file must be used.
|
||||
* the module does not allow to set low level attributes such as database server, etc.
|
||||
* `server.env.techname.mixin`'s `tech_name` field could leverage the new option
|
||||
for computable / writable fields and get rid of some onchange / read / write code.
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
|
@ -208,6 +227,7 @@ Contributors
|
|||
* Guewen Baconnier <guewen.baconnier@camptocamp.com>
|
||||
* Thomas Binfeld <thomas.binsfeld@acsone.eu>
|
||||
* Stéphane Bidoul <stefane.bidoul@acsone.com>
|
||||
* Simone Orsi <simahawk@gmail.com>
|
||||
|
||||
Maintainers
|
||||
~~~~~~~~~~~
|
||||
|
|
|
|||
|
|
@ -463,7 +463,7 @@ export DB_MAXCONN=5
|
|||
|
||||
# server environment options
|
||||
export SERVER_ENV_CONFIG="
|
||||
[storage_backend.my-sftp]
|
||||
[storage_backend.my_sftp]
|
||||
sftp_server=10.10.10.10
|
||||
sftp_login=foo
|
||||
sftp_port=22200
|
||||
|
|
@ -477,10 +477,16 @@ directory_path=Odoo
|
|||
export DB_PASSWORD='xxxxxxxxx'
|
||||
# server environment options
|
||||
export SERVER_ENV_CONFIG_SECRET="
|
||||
[storage_backend.my-sftp]
|
||||
[storage_backend.my_sftp]
|
||||
sftp_password=xxxxxxxxx
|
||||
"
|
||||
</pre>
|
||||
<p><strong>WARNING</strong></p>
|
||||
<blockquote>
|
||||
<cite>my_sftp</cite> must match the name of the record.
|
||||
If you want something more reliable use <cite>server.env.techname.mixin</cite>
|
||||
and use <cite>tech_name</cite> field to reference records.
|
||||
See “USAGE”.</blockquote>
|
||||
</div>
|
||||
<div class="section" id="default-values">
|
||||
<h2><a class="toc-backref" href="#id5">Default values</a></h2>
|
||||
|
|
@ -510,6 +516,14 @@ class StorageBackend(models.Model):
|
|||
return {"directory_path": {}}
|
||||
</pre>
|
||||
<p>Read the documentation of the class and methods in <a class="reference external" href="models/server_env_mixin.py">models/server_env_mixin.py</a>.</p>
|
||||
<p>If you want to have a technical name to reference:</p>
|
||||
<pre class="literal-block">
|
||||
class StorageBackend(models.Model):
|
||||
_name = "storage.backend"
|
||||
_inherit = ["storage.backend", "server.env.techname.mixin", "server.env.mixin"]
|
||||
|
||||
[...]
|
||||
</pre>
|
||||
</div>
|
||||
<div class="section" id="known-issues-roadmap">
|
||||
<h1><a class="toc-backref" href="#id8">Known issues / Roadmap</a></h1>
|
||||
|
|
@ -517,6 +531,8 @@ class StorageBackend(models.Model):
|
|||
<li>it is not possible to set the environment from the command line. A
|
||||
configuration file must be used.</li>
|
||||
<li>the module does not allow to set low level attributes such as database server, etc.</li>
|
||||
<li><cite>server.env.techname.mixin</cite>’s <cite>tech_name</cite> field could leverage the new option
|
||||
for computable / writable fields and get rid of some onchange / read / write code.</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="bug-tracker">
|
||||
|
|
@ -549,6 +565,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
|||
<li>Guewen Baconnier <<a class="reference external" href="mailto:guewen.baconnier@camptocamp.com">guewen.baconnier@camptocamp.com</a>></li>
|
||||
<li>Thomas Binfeld <<a class="reference external" href="mailto:thomas.binsfeld@acsone.eu">thomas.binsfeld@acsone.eu</a>></li>
|
||||
<li>Stéphane Bidoul <<a class="reference external" href="mailto:stefane.bidoul@acsone.com">stefane.bidoul@acsone.com</a>></li>
|
||||
<li>Simone Orsi <<a class="reference external" href="mailto:simahawk@gmail.com">simahawk@gmail.com</a>></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="maintainers">
|
||||
|
|
|
|||
Loading…
Reference in New Issue