[tryton-debian-vcs] tryton-modules-party branch debian updated. debian/4.4.1-1-2-gf7ef29e
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Thu Aug 17 12:31:42 UTC 2017
The following commit has been merged in the debian branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-party.git;a=commitdiff;h=debian/4.4.1-1-2-gf7ef29e
commit f7ef29ee0f54ef76535aceb3a4a6396d06438339
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Thu Aug 17 12:40:05 2017 +0200
Releasing debian version 4.4.2-1.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/debian/changelog b/debian/changelog
index 4acd758..6f0e82e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+tryton-modules-party (4.4.2-1) unstable; urgency=medium
+
+ * Merging upstream version 4.4.2.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Thu, 17 Aug 2017 12:40:05 +0200
+
tryton-modules-party (4.4.1-1) unstable; urgency=medium
* Change the maintainer address to tryton-debian at lists.alioth.debian.org
commit a7aef44c6d922cb9eb54745af4d5488f42f0fbc2
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Thu Aug 17 12:40:05 2017 +0200
Merging upstream version 4.4.2.
diff --git a/CHANGELOG b/CHANGELOG
index 198c601..798e514 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.4.2 - 2017-08-09
+* Bug fixes (see mercurial logs for details)
+
Version 4.4.1 - 2017-07-01
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index 7ae05fe..1d28482 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond_party
-Version: 4.4.1
+Version: 4.4.2
Summary: Tryton module with parties and addresses
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/party.py b/party.py
index da6a3b3..089b740 100644
--- a/party.py
+++ b/party.py
@@ -87,22 +87,11 @@ class Party(ModelSQL, ModelView, MultiValueMixin):
@classmethod
def __register__(cls, module_name):
- pool = Pool()
- PartyLang = pool.get('party.party.lang')
TableHandler = backend.get('TableHandler')
- cursor = Transaction().connection.cursor()
- table = cls.__table__()
- party_lang = PartyLang.__table__()
super(Party, cls).__register__(module_name)
table_h = TableHandler(cls, module_name)
- if table_h.column_exist('lang'):
- query = party_lang.insert(
- [party_lang.party, party_lang.lang],
- table.select(table.id, table.lang))
- cursor.execute(*query)
- table_h.drop_column('lang')
# Migration from 3.8
table_h.not_null_action('name', 'remove')
@@ -262,13 +251,26 @@ class PartyLang(ModelSQL, ValueMixin):
@classmethod
def __register__(cls, module_name):
+ pool = Pool()
+ Party = pool.get('party.party')
TableHandler = backend.get('TableHandler')
+ cursor = Transaction().connection.cursor()
exist = TableHandler.table_exist(cls._table)
+ table = cls.__table__()
+ party = Party.__table__()
super(PartyLang, cls).__register__(module_name)
if not exist:
- cls._migrate_property([], [], [])
+ party_h = TableHandler(Party, module_name)
+ if party_h.column_exist('lang'):
+ query = table.insert(
+ [table.party, table.lang],
+ party.select(party.id, party.lang))
+ cursor.execute(*query)
+ party_h.drop_column('lang')
+ else:
+ cls._migrate_property([], [], [])
@classmethod
def _migrate_property(cls, field_names, value_names, fields):
diff --git a/tryton.cfg b/tryton.cfg
index 0cffbb9..e50ae11 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=4.4.1
+version=4.4.2
depends:
country
ir
diff --git a/trytond_party.egg-info/PKG-INFO b/trytond_party.egg-info/PKG-INFO
index 797351c..8514333 100644
--- a/trytond_party.egg-info/PKG-INFO
+++ b/trytond_party.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond-party
-Version: 4.4.1
+Version: 4.4.2
Summary: Tryton module with parties and addresses
Home-page: http://www.tryton.org/
Author: Tryton
--
tryton-modules-party
More information about the tryton-debian-vcs
mailing list