changeset 2910fa74847f in modules/account_statement_ofx:default
details: 
https://hg.tryton.org/modules/account_statement_ofx?cmd=changeset;node=2910fa74847f
description:
        Rename informations to information

        issue7926
        review54491002
diffstat:

 CHANGELOG                                |   4 +++-
 account.py                               |  10 +++++-----
 tests/scenario_account_statement_ofx.rst |   2 +-
 3 files changed, 9 insertions(+), 7 deletions(-)

diffs (54 lines):

diff -r 832228533c6f -r 2910fa74847f CHANGELOG
--- a/CHANGELOG Sat Jan 26 01:10:47 2019 +0100
+++ b/CHANGELOG Wed Feb 06 22:34:13 2019 +0100
@@ -1,5 +1,7 @@
+* Rename StatementImport method ofx_informations to ofx_information
+
 Version 5.0.0 - 2018-10-01
 * Bug fixes (see mercurial logs for details)
 
 Version 4.8.0 - 2018-04-23
-* Initial release
\ No newline at end of file
+* Initial release
diff -r 832228533c6f -r 2910fa74847f account.py
--- a/account.py        Sat Jan 26 01:10:47 2019 +0100
+++ b/account.py        Wed Feb 06 22:34:13 2019 +0100
@@ -72,7 +72,7 @@
         origin.amount = transaction.amount
         origin.party = self.ofx_party(ofx_account, transaction)
         origin.description = transaction.memo
-        origin.informations = self.ofx_informations(ofx_account, transaction)
+        origin.information = self.ofx_information(ofx_account, transaction)
         return [origin]
 
     def ofx_party(self, ofx_account, transaction):
@@ -86,8 +86,8 @@
             party, = parties
             return party
 
-    def ofx_informations(self, ofx_account, transaction):
-        informations = {}
+    def ofx_information(self, ofx_account, transaction):
+        information = {}
         for name in [
                 'checknum',
                 'mcc',
@@ -96,5 +96,5 @@
                 ]:
             value = getattr(transaction, name)
             if value:
-                informations['ofx_' + name] = value
-        return informations
+                information['ofx_' + name] = value
+        return information
diff -r 832228533c6f -r 2910fa74847f tests/scenario_account_statement_ofx.rst
--- a/tests/scenario_account_statement_ofx.rst  Sat Jan 26 01:10:47 2019 +0100
+++ b/tests/scenario_account_statement_ofx.rst  Wed Feb 06 22:34:13 2019 +0100
@@ -115,5 +115,5 @@
     True
     >>> origin.description
     'COMMUNICATION'
-    >>> origin.informations['ofx_type']
+    >>> origin.information['ofx_type']
     'credit'

Reply via email to