mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-24 17:38:42 -06:00
Merge pull request #43 from gurneyalex/8.0-fix-travis
fix travis (flake8)
This commit is contained in:
commit
234ce50180
@ -49,8 +49,8 @@ class IrAttachment(Model):
|
|||||||
try:
|
try:
|
||||||
import magic
|
import magic
|
||||||
ms = magic.open(
|
ms = magic.open(
|
||||||
hasattr(magic, 'MAGIC_MIME_TYPE')
|
hasattr(magic, 'MAGIC_MIME_TYPE') and
|
||||||
and magic.MAGIC_MIME_TYPE or magic.MAGIC_MIME)
|
magic.MAGIC_MIME_TYPE or magic.MAGIC_MIME)
|
||||||
ms.load()
|
ms.load()
|
||||||
mimetype = ms.buffer(
|
mimetype = ms.buffer(
|
||||||
base64.b64decode(this[binary_field]))
|
base64.b64decode(this[binary_field]))
|
||||||
|
@ -27,7 +27,8 @@
|
|||||||
'description': """
|
'description': """
|
||||||
Module that allows to attach an URL as a document.
|
Module that allows to attach an URL as a document.
|
||||||
""",
|
""",
|
||||||
'author': "Serv. Tecnolog. Avanzados - Pedro M. Baeza,Odoo Community Association (OCA)",
|
'author': "Serv. Tecnolog. Avanzados - Pedro M. Baeza,"
|
||||||
|
"Odoo Community Association (OCA)",
|
||||||
'website': 'http://www.serviciosbaeza.com',
|
'website': 'http://www.serviciosbaeza.com',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'depends': [
|
'depends': [
|
||||||
|
Loading…
Reference in New Issue
Block a user