Skip to content

Commit

Permalink
[MIG] cmis: Migration to 13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lmignon committed Nov 7, 2019
1 parent 9af8e31 commit d0a4588
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmis/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"external_dependencies": {"python": ["cmislib"]},
"data": ["security/cmis_backend.xml", "views/cmis_backend.xml"],
"demo": ["demo/cmis_backend_demo.xml"],
"installable": False,
"installable": True,
}
6 changes: 1 addition & 5 deletions cmis/models/cmis_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import logging

from odoo import api, fields, models
from odoo import fields, models
from odoo.exceptions import UserError
from odoo.tools.translate import _

Expand Down Expand Up @@ -38,7 +38,6 @@ class CmisBackend(models.Model):
("name_uniq", "unique(name)", _("CMIS Backend name must be unique!"))
]

@api.multi
def get_cmis_client(self):
"""
Get an initialized CmisClient using the CMISBrowserBinding
Expand All @@ -48,14 +47,12 @@ def get_cmis_client(self):
self.location, self.username, self.password, binding=BrowserBinding()
)

@api.multi
def get_cmis_repository(self):
""" Return the default repository in the CMIS container """
self.ensure_one()
client = self.get_cmis_client()
return client.defaultRepository

@api.multi
def check_directory_of_write(self):
"""Check access right to write from the path"""
datas_fname = "testdoc"
Expand Down Expand Up @@ -89,7 +86,6 @@ def check_directory_of_write(self):
else:
raise CMISError(_("Error path for : %s") % path_write_objectid)

@api.multi
def get_folder_by_path(
self, path, create_if_not_found=True, cmis_parent_objectid=None
):
Expand Down

0 comments on commit d0a4588

Please sign in to comment.