[tryton-debian-vcs] tryton-modules-bank branch debian updated. debian/3.8.0-2-4-g74cbf97

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Thu Jun 2 16:10:16 UTC 2016


The following commit has been merged in the debian branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-bank.git;a=commitdiff;h=debian/3.8.0-2-4-g74cbf97

commit 74cbf97a480253b7af8a71aebc371b1f53110cf8
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Wed Jun 1 21:47:19 2016 +0200

    Releasing debian version 4.0.0-1.
    
    Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>

diff --git a/debian/changelog b/debian/changelog
index f137ab0..392eeae 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+tryton-modules-bank (4.0.0-1) unstable; urgency=medium
+
+  * Updating signing-key.asc with the actual upstream maintainer keys.
+  * Merging upstream version 4.0.0.
+  * Updating the copyright file.
+
+ -- Mathias Behrle <mathiasb at m9s.biz>  Mon, 30 May 2016 19:27:49 +0200
+
 tryton-modules-bank (3.8.0-2) unstable; urgency=medium
 
   * Updating to standards version 3.9.7, no changes needed.
commit 662d276a664660721d0137b6289dc7cd1bc22ba0
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Fri May 27 19:01:03 2016 +0200

    Updating the copyright file.

diff --git a/debian/copyright b/debian/copyright
index 47e2d54..19e901d 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,12 +1,12 @@
 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 
 Files: *
-Copyright: 2013-2015 Cédric Krier
-           2013-2015 B2CK SPRL
+Copyright: 2013-2016 Cédric Krier
+           2013-2016 B2CK SPRL
 License: GPL-3+
 
 Files: debian/*
-Copyright: 2013-2015 Mathias Behrle <mathiasb at m9s.biz>
+Copyright: 2013-2016 Mathias Behrle <mathiasb at m9s.biz>
 License: GPL-3+
 
 License: GPL-3+
commit 1b39e7bc28852a560a16c17b498d796fb571ab87
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Fri May 27 18:25:56 2016 +0200

    Merging upstream version 4.0.0.

diff --git a/CHANGELOG b/CHANGELOG
index 9830e49..f200966 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,7 @@
+Version 4.0.0 - 2016-05-02
+* Bug fixes (see mercurial logs for details)
+* Add Python3 support
+
 Version 3.8.0 - 2015-11-02
 * Bug fixes (see mercurial logs for details)
 
diff --git a/COPYRIGHT b/COPYRIGHT
index 1ab21bc..20bd036 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -1,5 +1,5 @@
-Copyright (C) 2013-2015 Cédric Krier.
-Copyright (C) 2013-2015 B2CK SPRL.
+Copyright (C) 2013-2016 Cédric Krier.
+Copyright (C) 2013-2016 B2CK SPRL.
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
diff --git a/PKG-INFO b/PKG-INFO
index 5c894f1..a2498fd 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,12 +1,12 @@
 Metadata-Version: 1.1
 Name: trytond_bank
-Version: 3.8.0
+Version: 4.0.0
 Summary: Tryton module with banks
 Home-page: http://www.tryton.org/
 Author: Tryton
 Author-email: issue_tracker at tryton.org
 License: GPL-3
-Download-URL: http://downloads.tryton.org/3.8/
+Download-URL: http://downloads.tryton.org/4.0/
 Description: trytond_bank
         ============
         
@@ -55,6 +55,7 @@ Classifier: Intended Audience :: Manufacturing
 Classifier: License :: OSI Approved :: GNU General Public License (GPL)
 Classifier: Natural Language :: Bulgarian
 Classifier: Natural Language :: Catalan
+Classifier: Natural Language :: Chinese (Simplified)
 Classifier: Natural Language :: Czech
 Classifier: Natural Language :: Dutch
 Classifier: Natural Language :: English
@@ -68,6 +69,9 @@ Classifier: Natural Language :: Slovenian
 Classifier: Natural Language :: Spanish
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3.3
+Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: Implementation :: CPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
 Classifier: Topic :: Office/Business
diff --git a/locale/bg_BG.po b/locale/bg_BG.po
index 6fba2b1..73eb771 100644
--- a/locale/bg_BG.po
+++ b/locale/bg_BG.po
@@ -74,13 +74,15 @@ msgctxt "field:bank.account,id:"
 msgid "ID"
 msgstr "ID"
 
+#, fuzzy
 msgctxt "field:bank.account,numbers:"
 msgid "Numbers"
-msgstr ""
+msgstr "Номер"
 
+#, fuzzy
 msgctxt "field:bank.account,owners:"
 msgid "Owners"
-msgstr ""
+msgstr "Собственик"
 
 #, fuzzy
 msgctxt "field:bank.account,rec_name:"
diff --git a/locale/es_MX.po b/locale/es_MX.po
index 7c2ef06..5eff0b6 100644
--- a/locale/es_MX.po
+++ b/locale/es_MX.po
@@ -214,30 +214,37 @@ msgctxt "selection:bank.account.number,type:"
 msgid "Other"
 msgstr "Otro"
 
+#, fuzzy
 msgctxt "view:bank.account.number:"
 msgid "Bank Account Number"
-msgstr ""
+msgstr "Número de cuenta bancaria"
 
+#, fuzzy
 msgctxt "view:bank.account.number:"
 msgid "Bank Account Numbers"
-msgstr ""
+msgstr "Número de cuenta bancaria"
 
+#, fuzzy
 msgctxt "view:bank.account:"
 msgid "Bank Account"
-msgstr ""
+msgstr "Cuenta bancaria"
 
+#, fuzzy
 msgctxt "view:bank.account:"
 msgid "Bank Accounts"
-msgstr ""
+msgstr "Cuentas bancarias"
 
+#, fuzzy
 msgctxt "view:bank:"
 msgid "Bank"
-msgstr ""
+msgstr "Banco"
 
+#, fuzzy
 msgctxt "view:bank:"
 msgid "Banks"
-msgstr ""
+msgstr "Bancos"
 
+#, fuzzy
 msgctxt "view:party.party:"
 msgid "Banking"
-msgstr ""
+msgstr "Banca"
diff --git a/locale/hu_HU.po b/locale/hu_HU.po
index 292c469..db381a6 100644
--- a/locale/hu_HU.po
+++ b/locale/hu_HU.po
@@ -216,28 +216,29 @@ msgstr "egyéb"
 
 msgctxt "view:bank.account.number:"
 msgid "Bank Account Number"
-msgstr ""
+msgstr "Számlaszám"
 
+#, fuzzy
 msgctxt "view:bank.account.number:"
 msgid "Bank Account Numbers"
-msgstr ""
+msgstr "Számlaszám"
 
 msgctxt "view:bank.account:"
 msgid "Bank Account"
-msgstr ""
+msgstr "Bankszámla"
 
 msgctxt "view:bank.account:"
 msgid "Bank Accounts"
-msgstr ""
+msgstr "Bankszámla"
 
 msgctxt "view:bank:"
 msgid "Bank"
-msgstr ""
+msgstr "Bank"
 
 msgctxt "view:bank:"
 msgid "Banks"
-msgstr ""
+msgstr "Bankok"
 
 msgctxt "view:party.party:"
 msgid "Banking"
-msgstr ""
+msgstr "Bankügylet"
diff --git a/locale/nl_NL.po b/locale/lo_LA.po
similarity index 90%
copy from locale/nl_NL.po
copy to locale/lo_LA.po
index e789567..13acf73 100644
--- a/locale/nl_NL.po
+++ b/locale/lo_LA.po
@@ -4,11 +4,11 @@ msgstr "Content-Type: text/plain; charset=utf-8\n"
 
 msgctxt "error:bank.account.number:"
 msgid "Invalid IBAN \"%s\"."
-msgstr "Ongeldige IBAN \"%s\"."
+msgstr ""
 
 msgctxt "field:bank,bic:"
 msgid "BIC"
-msgstr "BIC"
+msgstr ""
 
 msgctxt "field:bank,create_date:"
 msgid "Create Date"
@@ -20,15 +20,15 @@ msgstr ""
 
 msgctxt "field:bank,id:"
 msgid "ID"
-msgstr "ID"
+msgstr ""
 
 msgctxt "field:bank,party:"
 msgid "Party"
-msgstr "Relatie"
+msgstr ""
 
 msgctxt "field:bank,rec_name:"
 msgid "Name"
-msgstr "Naam"
+msgstr ""
 
 msgctxt "field:bank,write_date:"
 msgid "Write Date"
@@ -38,10 +38,9 @@ msgctxt "field:bank,write_uid:"
 msgid "Write User"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:bank.account,active:"
 msgid "Active"
-msgstr "Actief"
+msgstr ""
 
 msgctxt "field:bank.account,bank:"
 msgid "Bank"
@@ -55,10 +54,9 @@ msgctxt "field:bank.account,create_uid:"
 msgid "Create User"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:bank.account,currency:"
 msgid "Currency"
-msgstr "Valuta"
+msgstr ""
 
 msgctxt "field:bank.account,id:"
 msgid "ID"
@@ -72,10 +70,9 @@ msgctxt "field:bank.account,owners:"
 msgid "Owners"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:bank.account,rec_name:"
 msgid "Name"
-msgstr "Naam bijlage"
+msgstr ""
 
 msgctxt "field:bank.account,write_date:"
 msgid "Write Date"
@@ -85,10 +82,9 @@ msgctxt "field:bank.account,write_uid:"
 msgid "Write User"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:bank.account-party.party,account:"
 msgid "Account"
-msgstr "Rekeningen"
+msgstr ""
 
 msgctxt "field:bank.account-party.party,create_date:"
 msgid "Create Date"
@@ -106,10 +102,9 @@ msgctxt "field:bank.account-party.party,owner:"
 msgid "Owner"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:bank.account-party.party,rec_name:"
 msgid "Name"
-msgstr "Naam bijlage"
+msgstr ""
 
 msgctxt "field:bank.account-party.party,write_date:"
 msgid "Write Date"
@@ -119,10 +114,9 @@ msgctxt "field:bank.account-party.party,write_uid:"
 msgid "Write User"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:bank.account.number,account:"
 msgid "Account"
-msgstr "Rekeningen"
+msgstr ""
 
 msgctxt "field:bank.account.number,create_date:"
 msgid "Create Date"
@@ -136,29 +130,25 @@ msgctxt "field:bank.account.number,id:"
 msgid "ID"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:bank.account.number,number:"
 msgid "Number"
-msgstr "Nummer"
+msgstr ""
 
 msgctxt "field:bank.account.number,number_compact:"
 msgid "Number Compact"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:bank.account.number,rec_name:"
 msgid "Name"
-msgstr "Naam bijlage"
+msgstr ""
 
-#, fuzzy
 msgctxt "field:bank.account.number,sequence:"
 msgid "Sequence"
-msgstr "Reeks"
+msgstr ""
 
-#, fuzzy
 msgctxt "field:bank.account.number,type:"
 msgid "Type"
-msgstr "Type"
+msgstr ""
 
 msgctxt "field:bank.account.number,write_date:"
 msgid "Write Date"
@@ -192,19 +182,17 @@ msgctxt "model:bank.account.number,name:"
 msgid "Bank Account Number"
 msgstr ""
 
-#, fuzzy
 msgctxt "model:ir.action,name:act_bank_account_form"
 msgid "Accounts"
-msgstr "Rekeningen"
+msgstr ""
 
 msgctxt "model:ir.action,name:act_bank_form"
 msgid "Banks"
 msgstr ""
 
-#, fuzzy
 msgctxt "model:ir.ui.menu,name:menu_bank_account_form"
 msgid "Accounts"
-msgstr "Rekeningen"
+msgstr ""
 
 msgctxt "model:ir.ui.menu,name:menu_bank_form"
 msgid "Banks"
@@ -222,10 +210,9 @@ msgctxt "selection:bank.account.number,type:"
 msgid "IBAN"
 msgstr ""
 
-#, fuzzy
 msgctxt "selection:bank.account.number,type:"
 msgid "Other"
-msgstr "Overig"
+msgstr ""
 
 msgctxt "view:bank.account.number:"
 msgid "Bank Account Number"
diff --git a/locale/nl_NL.po b/locale/nl_NL.po
index e789567..2b28f39 100644
--- a/locale/nl_NL.po
+++ b/locale/nl_NL.po
@@ -62,11 +62,12 @@ msgstr "Valuta"
 
 msgctxt "field:bank.account,id:"
 msgid "ID"
-msgstr ""
+msgstr "ID"
 
+#, fuzzy
 msgctxt "field:bank.account,numbers:"
 msgid "Numbers"
-msgstr ""
+msgstr "Nummer"
 
 msgctxt "field:bank.account,owners:"
 msgid "Owners"
@@ -100,7 +101,7 @@ msgstr ""
 
 msgctxt "field:bank.account-party.party,id:"
 msgid "ID"
-msgstr ""
+msgstr "ID"
 
 msgctxt "field:bank.account-party.party,owner:"
 msgid "Owner"
@@ -134,7 +135,7 @@ msgstr ""
 
 msgctxt "field:bank.account.number,id:"
 msgid "ID"
-msgstr ""
+msgstr "ID"
 
 #, fuzzy
 msgctxt "field:bank.account.number,number:"
diff --git a/locale/ru_RU.po b/locale/ru_RU.po
index adba3f9..ae02718 100644
--- a/locale/ru_RU.po
+++ b/locale/ru_RU.po
@@ -74,13 +74,15 @@ msgctxt "field:bank.account,id:"
 msgid "ID"
 msgstr "ID"
 
+#, fuzzy
 msgctxt "field:bank.account,numbers:"
 msgid "Numbers"
-msgstr ""
+msgstr "Номер"
 
+#, fuzzy
 msgctxt "field:bank.account,owners:"
 msgid "Owners"
-msgstr ""
+msgstr "Владелец"
 
 #, fuzzy
 msgctxt "field:bank.account,rec_name:"
diff --git a/locale/nl_NL.po b/locale/zh_CN.po
similarity index 90%
copy from locale/nl_NL.po
copy to locale/zh_CN.po
index e789567..13acf73 100644
--- a/locale/nl_NL.po
+++ b/locale/zh_CN.po
@@ -4,11 +4,11 @@ msgstr "Content-Type: text/plain; charset=utf-8\n"
 
 msgctxt "error:bank.account.number:"
 msgid "Invalid IBAN \"%s\"."
-msgstr "Ongeldige IBAN \"%s\"."
+msgstr ""
 
 msgctxt "field:bank,bic:"
 msgid "BIC"
-msgstr "BIC"
+msgstr ""
 
 msgctxt "field:bank,create_date:"
 msgid "Create Date"
@@ -20,15 +20,15 @@ msgstr ""
 
 msgctxt "field:bank,id:"
 msgid "ID"
-msgstr "ID"
+msgstr ""
 
 msgctxt "field:bank,party:"
 msgid "Party"
-msgstr "Relatie"
+msgstr ""
 
 msgctxt "field:bank,rec_name:"
 msgid "Name"
-msgstr "Naam"
+msgstr ""
 
 msgctxt "field:bank,write_date:"
 msgid "Write Date"
@@ -38,10 +38,9 @@ msgctxt "field:bank,write_uid:"
 msgid "Write User"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:bank.account,active:"
 msgid "Active"
-msgstr "Actief"
+msgstr ""
 
 msgctxt "field:bank.account,bank:"
 msgid "Bank"
@@ -55,10 +54,9 @@ msgctxt "field:bank.account,create_uid:"
 msgid "Create User"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:bank.account,currency:"
 msgid "Currency"
-msgstr "Valuta"
+msgstr ""
 
 msgctxt "field:bank.account,id:"
 msgid "ID"
@@ -72,10 +70,9 @@ msgctxt "field:bank.account,owners:"
 msgid "Owners"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:bank.account,rec_name:"
 msgid "Name"
-msgstr "Naam bijlage"
+msgstr ""
 
 msgctxt "field:bank.account,write_date:"
 msgid "Write Date"
@@ -85,10 +82,9 @@ msgctxt "field:bank.account,write_uid:"
 msgid "Write User"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:bank.account-party.party,account:"
 msgid "Account"
-msgstr "Rekeningen"
+msgstr ""
 
 msgctxt "field:bank.account-party.party,create_date:"
 msgid "Create Date"
@@ -106,10 +102,9 @@ msgctxt "field:bank.account-party.party,owner:"
 msgid "Owner"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:bank.account-party.party,rec_name:"
 msgid "Name"
-msgstr "Naam bijlage"
+msgstr ""
 
 msgctxt "field:bank.account-party.party,write_date:"
 msgid "Write Date"
@@ -119,10 +114,9 @@ msgctxt "field:bank.account-party.party,write_uid:"
 msgid "Write User"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:bank.account.number,account:"
 msgid "Account"
-msgstr "Rekeningen"
+msgstr ""
 
 msgctxt "field:bank.account.number,create_date:"
 msgid "Create Date"
@@ -136,29 +130,25 @@ msgctxt "field:bank.account.number,id:"
 msgid "ID"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:bank.account.number,number:"
 msgid "Number"
-msgstr "Nummer"
+msgstr ""
 
 msgctxt "field:bank.account.number,number_compact:"
 msgid "Number Compact"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:bank.account.number,rec_name:"
 msgid "Name"
-msgstr "Naam bijlage"
+msgstr ""
 
-#, fuzzy
 msgctxt "field:bank.account.number,sequence:"
 msgid "Sequence"
-msgstr "Reeks"
+msgstr ""
 
-#, fuzzy
 msgctxt "field:bank.account.number,type:"
 msgid "Type"
-msgstr "Type"
+msgstr ""
 
 msgctxt "field:bank.account.number,write_date:"
 msgid "Write Date"
@@ -192,19 +182,17 @@ msgctxt "model:bank.account.number,name:"
 msgid "Bank Account Number"
 msgstr ""
 
-#, fuzzy
 msgctxt "model:ir.action,name:act_bank_account_form"
 msgid "Accounts"
-msgstr "Rekeningen"
+msgstr ""
 
 msgctxt "model:ir.action,name:act_bank_form"
 msgid "Banks"
 msgstr ""
 
-#, fuzzy
 msgctxt "model:ir.ui.menu,name:menu_bank_account_form"
 msgid "Accounts"
-msgstr "Rekeningen"
+msgstr ""
 
 msgctxt "model:ir.ui.menu,name:menu_bank_form"
 msgid "Banks"
@@ -222,10 +210,9 @@ msgctxt "selection:bank.account.number,type:"
 msgid "IBAN"
 msgstr ""
 
-#, fuzzy
 msgctxt "selection:bank.account.number,type:"
 msgid "Other"
-msgstr "Overig"
+msgstr ""
 
 msgctxt "view:bank.account.number:"
 msgid "Bank Account Number"
diff --git a/party.py b/party.py
index f7c0a68..0b256e7 100644
--- a/party.py
+++ b/party.py
@@ -5,10 +5,10 @@ from trytond.model import fields
 
 
 __all__ = ['Party']
-__metaclass__ = PoolMeta
 
 
 class Party:
+    __metaclass__ = PoolMeta
     __name__ = 'party.party'
     bank_accounts = fields.Many2Many('bank.account-party.party', 'owner',
         'account', 'Bank Accounts')
diff --git a/setup.py b/setup.py
index dc1d0e2..e7091bb 100644
--- a/setup.py
+++ b/setup.py
@@ -5,11 +5,17 @@
 from setuptools import setup
 import re
 import os
-import ConfigParser
+import io
+try:
+    from configparser import ConfigParser
+except ImportError:
+    from ConfigParser import ConfigParser
 
 
 def read(fname):
-    return open(os.path.join(os.path.dirname(__file__), fname)).read()
+    return io.open(
+        os.path.join(os.path.dirname(__file__), fname),
+        'r', encoding='utf-8').read()
 
 
 def get_require_version(name):
@@ -21,7 +27,7 @@ def get_require_version(name):
         major_version, minor_version + 1)
     return require
 
-config = ConfigParser.ConfigParser()
+config = ConfigParser()
 config.readfp(open('tryton.cfg'))
 info = dict(config.items('tryton'))
 for key in ('depends', 'extras_depend', 'xml'):
@@ -43,7 +49,7 @@ if minor_version % 2:
 
 requires = ['python-stdnum', 'python-sql >= 0.4']
 for dep in info.get('depends', []):
-    if not re.match(r'(ir|res|webdav)(\W|$)', dep):
+    if not re.match(r'(ir|res)(\W|$)', dep):
         requires.append(get_require_version('trytond_%s' % dep))
 requires.append(get_require_version('trytond'))
 
@@ -76,6 +82,7 @@ setup(name=name,
         'License :: OSI Approved :: GNU General Public License (GPL)',
         'Natural Language :: Bulgarian',
         'Natural Language :: Catalan',
+        'Natural Language :: Chinese (Simplified)',
         'Natural Language :: Czech',
         'Natural Language :: Dutch',
         'Natural Language :: English',
@@ -89,6 +96,9 @@ setup(name=name,
         'Natural Language :: Spanish',
         'Operating System :: OS Independent',
         'Programming Language :: Python :: 2.7',
+        'Programming Language :: Python :: 3.3',
+        'Programming Language :: Python :: 3.4',
+        'Programming Language :: Python :: 3.5',
         'Programming Language :: Python :: Implementation :: CPython',
         'Programming Language :: Python :: Implementation :: PyPy',
         'Topic :: Office/Business',
@@ -102,4 +112,5 @@ setup(name=name,
     """,
     test_suite='tests',
     test_loader='trytond.test_loader:Loader',
+    use_2to3=True,
     )
diff --git a/tests/__init__.py b/tests/__init__.py
index efca78c..1f6d66a 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -1,6 +1,9 @@
 # This file is part of Tryton.  The COPYRIGHT file at the top level of
 # this repository contains the full copyright notices and license terms.
 
-from .test_bank import suite
+try:
+    from trytond.modules.bank.tests.test_bank import suite
+except ImportError:
+    from .test_bank import suite
 
 __all__ = ['suite']
diff --git a/tests/test_bank.py b/tests/test_bank.py
index 1e996c5..e81975b 100644
--- a/tests/test_bank.py
+++ b/tests/test_bank.py
@@ -2,63 +2,61 @@
 # this repository contains the full copyright notices and license terms.
 import unittest
 import trytond.tests.test_tryton
-from trytond.tests.test_tryton import ModuleTestCase
-from trytond.tests.test_tryton import POOL, DB_NAME, USER, CONTEXT
-from trytond.transaction import Transaction
+from trytond.tests.test_tryton import ModuleTestCase, with_transaction
+from trytond.pool import Pool
 
 
 class BankTestCase(ModuleTestCase):
     'Test Bank module'
     module = 'bank'
 
-    def setUp(self):
-        super(BankTestCase, self).setUp()
-        self.bank = POOL.get('bank')
-        self.party = POOL.get('party.party')
-        self.account = POOL.get('bank.account')
-        self.number = POOL.get('bank.account.number')
-
-    def test0010iban_format(self):
+    @with_transaction()
+    def test_iban_format(self):
         'Test IBAN format'
-        with Transaction().start(DB_NAME, USER, context=CONTEXT):
-            party = self.party(name='Test')
-            party.save()
-            bank = self.bank(party=party)
-            bank.save()
-            account, = self.account.create([{
-                        'bank': bank.id,
-                        'numbers': [('create', [{
-                                        'type': 'iban',
-                                        'number': 'BE82068896274468',
-                                        }, {
-                                        'type': 'other',
-                                        'number': 'not IBAN',
-                                        }])],
-                        }])
+        pool = Pool()
+        Party = pool.get('party.party')
+        Bank = pool.get('bank')
+        Account = pool.get('bank.account')
+        Number = pool.get('bank.account.number')
+
+        party = Party(name='Test')
+        party.save()
+        bank = Bank(party=party)
+        bank.save()
+        account, = Account.create([{
+                    'bank': bank.id,
+                    'numbers': [('create', [{
+                                    'type': 'iban',
+                                    'number': 'BE82068896274468',
+                                    }, {
+                                    'type': 'other',
+                                    'number': 'not IBAN',
+                                    }])],
+                    }])
 
-            iban_number, other_number = account.numbers
-            self.assertEqual(iban_number.type, 'iban')
-            self.assertEqual(other_number.type, 'other')
+        iban_number, other_number = account.numbers
+        self.assertEqual(iban_number.type, 'iban')
+        self.assertEqual(other_number.type, 'other')
 
-            # Test format on create
-            self.assertEqual(iban_number.number, 'BE82 0688 9627 4468')
-            self.assertEqual(other_number.number, 'not IBAN')
+        # Test format on create
+        self.assertEqual(iban_number.number, 'BE82 0688 9627 4468')
+        self.assertEqual(other_number.number, 'not IBAN')
 
-            # Test format on write
-            iban_number.number = 'BE82068896274468'
-            iban_number.type = 'iban'
-            iban_number.save()
-            self.assertEqual(iban_number.number, 'BE82 0688 9627 4468')
+        # Test format on write
+        iban_number.number = 'BE82068896274468'
+        iban_number.type = 'iban'
+        iban_number.save()
+        self.assertEqual(iban_number.number, 'BE82 0688 9627 4468')
 
-            other_number.number = 'still not IBAN'
-            other_number.save()
-            self.assertEqual(other_number.number, 'still not IBAN')
+        other_number.number = 'still not IBAN'
+        other_number.save()
+        self.assertEqual(other_number.number, 'still not IBAN')
 
-            self.number.write([iban_number, other_number], {
-                    'number': 'BE82068896274468',
-                    })
-            self.assertEqual(iban_number.number, 'BE82 0688 9627 4468')
-            self.assertEqual(other_number.number, 'BE82068896274468')
+        Number.write([iban_number, other_number], {
+                'number': 'BE82068896274468',
+                })
+        self.assertEqual(iban_number.number, 'BE82 0688 9627 4468')
+        self.assertEqual(other_number.number, 'BE82068896274468')
 
 
 def suite():
diff --git a/tryton.cfg b/tryton.cfg
index f555415..f9d8cc0 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=3.8.0
+version=4.0.0
 depends:
     ir
     party
diff --git a/trytond_bank.egg-info/PKG-INFO b/trytond_bank.egg-info/PKG-INFO
index 13671af..049ade9 100644
--- a/trytond_bank.egg-info/PKG-INFO
+++ b/trytond_bank.egg-info/PKG-INFO
@@ -1,12 +1,12 @@
 Metadata-Version: 1.1
 Name: trytond-bank
-Version: 3.8.0
+Version: 4.0.0
 Summary: Tryton module with banks
 Home-page: http://www.tryton.org/
 Author: Tryton
 Author-email: issue_tracker at tryton.org
 License: GPL-3
-Download-URL: http://downloads.tryton.org/3.8/
+Download-URL: http://downloads.tryton.org/4.0/
 Description: trytond_bank
         ============
         
@@ -55,6 +55,7 @@ Classifier: Intended Audience :: Manufacturing
 Classifier: License :: OSI Approved :: GNU General Public License (GPL)
 Classifier: Natural Language :: Bulgarian
 Classifier: Natural Language :: Catalan
+Classifier: Natural Language :: Chinese (Simplified)
 Classifier: Natural Language :: Czech
 Classifier: Natural Language :: Dutch
 Classifier: Natural Language :: English
@@ -68,6 +69,9 @@ Classifier: Natural Language :: Slovenian
 Classifier: Natural Language :: Spanish
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3.3
+Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: Implementation :: CPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
 Classifier: Topic :: Office/Business
diff --git a/trytond_bank.egg-info/SOURCES.txt b/trytond_bank.egg-info/SOURCES.txt
index 6513014..f1961a9 100644
--- a/trytond_bank.egg-info/SOURCES.txt
+++ b/trytond_bank.egg-info/SOURCES.txt
@@ -56,11 +56,13 @@ locale/fr_FR.po
 locale/hu_HU.po
 locale/it_IT.po
 locale/ja_JP.po
+locale/lo_LA.po
 locale/lt_LT.po
 locale/nl_NL.po
 locale/pt_BR.po
 locale/ru_RU.po
 locale/sl_SI.po
+locale/zh_CN.po
 trytond_bank.egg-info/PKG-INFO
 trytond_bank.egg-info/SOURCES.txt
 trytond_bank.egg-info/dependency_links.txt
diff --git a/trytond_bank.egg-info/requires.txt b/trytond_bank.egg-info/requires.txt
index 93e947a..ef55511 100644
--- a/trytond_bank.egg-info/requires.txt
+++ b/trytond_bank.egg-info/requires.txt
@@ -1,5 +1,5 @@
 python-stdnum
 python-sql >= 0.4
-trytond_party >= 3.8, < 3.9
-trytond_currency >= 3.8, < 3.9
-trytond >= 3.8, < 3.9
\ No newline at end of file
+trytond_party >= 4.0, < 4.1
+trytond_currency >= 4.0, < 4.1
+trytond >= 4.0, < 4.1
\ No newline at end of file
-- 
tryton-modules-bank



More information about the tryton-debian-vcs mailing list