Browse Source

[10.0][MIG] Migrate letsencrypt

pull/916/head
Roberto Fichera 7 years ago
committed by Holger Brunn
parent
commit
688787eb7a
  1. 4
      letsencrypt/__manifest__.py
  2. 4
      letsencrypt/controllers/main.py
  3. 2
      letsencrypt/hooks.py
  4. 4
      letsencrypt/models/letsencrypt.py
  5. 2
      letsencrypt/tests/test_letsencrypt.py

4
letsencrypt/__manifest__.py

@ -3,7 +3,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Let's encrypt",
"version": "9.0.1.0.0",
"version": "10.0.1.0.0",
"author": "Therp BV,"
"Tecnativa,"
"Odoo Community Association (OCA)",
@ -19,7 +19,7 @@
"demo/ir_cron.xml",
],
"post_init_hook": 'post_init_hook',
'installable': False,
'installable': True,
"external_dependencies": {
'bin': [
'openssl',

4
letsencrypt/controllers/main.py

@ -3,8 +3,8 @@
# © 2016 Antonio Espinosa <antonio.espinosa@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import os
from openerp import http
from openerp.http import request
from odoo import http
from odoo.http import request
from ..models.letsencrypt import get_challenge_dir

2
letsencrypt/hooks.py

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# © 2016 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import SUPERUSER_ID, api
from odoo import SUPERUSER_ID, api
def post_init_hook(cr, pool):

4
letsencrypt/models/letsencrypt.py

@ -8,8 +8,8 @@ import urllib2
import urlparse
import subprocess
import tempfile
from openerp import _, api, models, exceptions
from openerp.tools import config
from odoo import _, api, models, exceptions
from odoo.tools import config
DEFAULT_KEY_LENGTH = 4096

2
letsencrypt/tests/test_letsencrypt.py

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# © 2016 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp.tests.common import TransactionCase
from odoo.tests.common import TransactionCase
class TestLetsencrypt(TransactionCase):

Loading…
Cancel
Save