mirror of
https://github.com/brain-tec/account_ebics.git
synced 2024-11-23 20:52:04 +00:00
[8.0]update for subscription based fintech licensing
This commit is contained in:
parent
e8a538bf22
commit
4ee049ce98
@ -40,6 +40,8 @@ The keycode of the licensed version.
|
|||||||
- fintech_register_users
|
- fintech_register_users
|
||||||
|
|
||||||
The licensed EBICS user ids. It must be a string or a list of user ids.
|
The licensed EBICS user ids. It must be a string or a list of user ids.
|
||||||
|
You should NOT specify this parameter if your license is subsciption
|
||||||
|
based (with monthly recurring billing).
|
||||||
|
|
||||||
Configuration
|
Configuration
|
||||||
=============
|
=============
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'EBICS banking protocol',
|
'name': 'EBICS banking protocol',
|
||||||
'version': '8.0.1.6.0',
|
'version': '8.0.1.6.1',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'author': 'Noviat',
|
'author': 'Noviat',
|
||||||
'category': 'Accounting & Finance',
|
'category': 'Accounting & Finance',
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# Copyright 2009-2018 Noviat.
|
# Copyright 2009-2020 Noviat.
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
@ -22,13 +22,16 @@ fintech_register_users = config.get('fintech_register_users')
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
if fintech:
|
if fintech:
|
||||||
fintech_register_users = fintech_register_users \
|
fintech_register_users = (
|
||||||
|
fintech_register_users
|
||||||
and [x.strip() for x in fintech_register_users.split(',')]
|
and [x.strip() for x in fintech_register_users.split(',')]
|
||||||
|
or None
|
||||||
|
)
|
||||||
fintech.cryptolib = 'cryptography'
|
fintech.cryptolib = 'cryptography'
|
||||||
fintech.register(
|
fintech.register(
|
||||||
fintech_register_name,
|
name=fintech_register_name,
|
||||||
fintech_register_keycode,
|
keycode=fintech_register_keycode,
|
||||||
fintech_register_users)
|
users=fintech_register_users)
|
||||||
except RuntimeError, e:
|
except RuntimeError, e:
|
||||||
if e.message == "'register' can be called only once":
|
if e.message == "'register' can be called only once":
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user