Skip to content

Commit 48ca32e

Browse files
committed
[MIG] storage_backend: Migration to 19.0
1 parent 4d883b0 commit 48ca32e

5 files changed

Lines changed: 12 additions & 13 deletions

File tree

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ exclude: |
1010
^fs_storage_ms_drive/|
1111
^image_tag/|
1212
^microsoft_drive_account/|
13-
^storage_backend/|
1413
^storage_backend_ftp/|
1514
^storage_backend_s3/|
1615
^storage_backend_sftp/|

storage_backend/README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ Storage Backend
2121
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
2222
:alt: License: LGPL-3
2323
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstorage-lightgray.png?logo=github
24-
:target: https://github.com/OCA/storage/tree/18.0/storage_backend
24+
:target: https://github.com/OCA/storage/tree/19.0/storage_backend
2525
:alt: OCA/storage
2626
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27-
:target: https://translation.odoo-community.org/projects/storage-18-0/storage-18-0-storage_backend
27+
:target: https://translation.odoo-community.org/projects/storage-19-0/storage-19-0-storage_backend
2828
:alt: Translate me on Weblate
2929
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30-
:target: https://runboat.odoo-community.org/builds?repo=OCA/storage&target_branch=18.0
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/storage&target_branch=19.0
3131
:alt: Try me on Runboat
3232

3333
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -55,7 +55,7 @@ Bug Tracker
5555
Bugs are tracked on `GitHub Issues <https://github.com/OCA/storage/issues>`_.
5656
In case of trouble, please check there if your issue has already been reported.
5757
If you spotted it first, help us to smash it by providing a detailed and welcomed
58-
`feedback <https://github.com/OCA/storage/issues/new?body=module:%20storage_backend%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
58+
`feedback <https://github.com/OCA/storage/issues/new?body=module:%20storage_backend%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
5959

6060
Do not contact contributors directly about support or help with technical issues.
6161

@@ -99,6 +99,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
9999
mission is to support the collaborative development of Odoo features and
100100
promote its widespread use.
101101

102-
This module is part of the `OCA/storage <https://github.com/OCA/storage/tree/18.0/storage_backend>`_ project on GitHub.
102+
This module is part of the `OCA/storage <https://github.com/OCA/storage/tree/19.0/storage_backend>`_ project on GitHub.
103103

104104
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

storage_backend/__manifest__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
{
66
"name": "Storage Backend",
77
"summary": "Implement the concept of Storage with amazon S3, sftp...",
8-
"version": "18.0.1.1.0",
8+
"version": "19.0.1.0.0",
99
"category": "Storage",
1010
"website": "https://github.com/OCA/storage",
1111
"author": " Akretion, Odoo Community Association (OCA)",
1212
"license": "LGPL-3",
1313
"development_status": "Production/Stable",
14-
"installable": False,
14+
"installable": True,
1515
"depends": ["base", "component", "server_environment"],
1616
"data": [
1717
"views/backend_storage_view.xml",

storage_backend/components/filesystem_adapter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ def _basedir(self):
2828
def _fullpath(self, relative_path):
2929
"""This will build the full path for the file, we force to
3030
store the data inside the filestore in the directory 'storage".
31-
Becarefull if you implement your own custom path, end user
31+
Be careful if you implement your own custom path, end user
3232
should never be able to write or read unwanted filesystem file"""
3333
full_path = super()._fullpath(relative_path)
3434
base_dir = self._basedir()
3535
full_path = os.path.join(base_dir, full_path)
3636
if not is_safe_path(base_dir, full_path):
37-
raise AccessError(self.env._("Access to %s is forbidden") % full_path)
37+
raise AccessError(self.env._("Access to %s is forbidden", full_path))
3838
return full_path
3939

4040
def add(self, relative_path, data, **kwargs):

storage_backend/static/description/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ <h1>Storage Backend</h1>
374374
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375375
!! source digest: sha256:93486c7bc0b8c99e2e3fa71a055f5e4e43bf92c40926732f17bb557116c84b97
376376
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/license-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/storage/tree/18.0/storage_backend"><img alt="OCA/storage" src="https://img.shields.io/badge/github-OCA%2Fstorage-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/storage-18-0/storage-18-0-storage_backend"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/storage&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
377+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/license-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/storage/tree/19.0/storage_backend"><img alt="OCA/storage" src="https://img.shields.io/badge/github-OCA%2Fstorage-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/storage-19-0/storage-19-0-storage_backend"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/storage&amp;target_branch=19.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378378
<p><strong>Table of contents</strong></p>
379379
<div class="contents local topic" id="contents">
380380
<ul class="simple">
@@ -401,7 +401,7 @@ <h2><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h2>
401401
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/storage/issues">GitHub Issues</a>.
402402
In case of trouble, please check there if your issue has already been reported.
403403
If you spotted it first, help us to smash it by providing a detailed and welcomed
404-
<a class="reference external" href="https://github.com/OCA/storage/issues/new?body=module:%20storage_backend%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
404+
<a class="reference external" href="https://github.com/OCA/storage/issues/new?body=module:%20storage_backend%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
405405
<p>Do not contact contributors directly about support or help with technical issues.</p>
406406
</div>
407407
<div class="section" id="credits">
@@ -440,7 +440,7 @@ <h3><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h3>
440440
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
441441
mission is to support the collaborative development of Odoo features and
442442
promote its widespread use.</p>
443-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/storage/tree/18.0/storage_backend">OCA/storage</a> project on GitHub.</p>
443+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/storage/tree/19.0/storage_backend">OCA/storage</a> project on GitHub.</p>
444444
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
445445
</div>
446446
</div>

0 commit comments

Comments
 (0)