[tryton-debian-vcs] tryton-client branch debian-jessie-2.8 updated. debian/2.8.14-1-2-g20d482a
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Mon Sep 21 12:24:40 UTC 2015
The following commit has been merged in the debian-jessie-2.8 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-client.git;a=commitdiff;h=debian/2.8.14-1-2-g20d482a
commit 20d482a59092719a954eb7286f361d3c9bae6a9f
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Sun Sep 20 19:48:13 2015 +0200
Releasing debian version 2.8.15-1.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/debian/changelog b/debian/changelog
index ad5332b..625fa11 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+tryton-client (2.8.15-1) unstable; urgency=medium
+
+ * Merging upstream version 2.8.15.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Sun, 20 Sep 2015 19:48:13 +0200
+
tryton-client (2.8.14-1) unstable; urgency=medium
* Merging upstream version 2.8.14.
commit a5871b4db5185e072ba441a4a200014448f5236e
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Sun Sep 20 19:48:12 2015 +0200
Merging upstream version 2.8.15.
diff --git a/CHANGELOG b/CHANGELOG
index 1138790..51b7af3 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 2.8.15 - 2015-09-08
+* Bug fixes (see mercurial logs for details)
+
Version 2.8.14 - 2015-05-19
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index 37ef64d..a7b602a 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: tryton
-Version: 2.8.14
+Version: 2.8.15
Summary: Tryton client
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/doc/usage.rst b/doc/usage.rst
index 15eda83..b4bc2c7 100644
--- a/doc/usage.rst
+++ b/doc/usage.rst
@@ -49,6 +49,11 @@ Options
-s SERVER, --server=SERVER Specify the server hostname
+Environment
+***********
+
+`GTKOSXAPPLICATION` Activate with native Mac desktop
+
URL
***
diff --git a/tryton.egg-info/PKG-INFO b/tryton.egg-info/PKG-INFO
index 37ef64d..a7b602a 100644
--- a/tryton.egg-info/PKG-INFO
+++ b/tryton.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: tryton
-Version: 2.8.14
+Version: 2.8.15
Summary: Tryton client
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/tryton/common/common.py b/tryton/common/common.py
index f99bcae..8d33e9b 100644
--- a/tryton/common/common.py
+++ b/tryton/common/common.py
@@ -449,8 +449,8 @@ def file_selection(title, filename='',
filename = win.get_preview_filename()
if filename:
try:
- pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(filename.decode(
- sys.getfilesystemencoding().encode('utf-8')), 128, 128)
+ pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(
+ filename, 128, 128)
img.set_from_pixbuf(pixbuf)
have_preview = True
except (IOError, glib.GError):
diff --git a/tryton/config.py b/tryton/config.py
index 1ad67c1..c7996cf 100644
--- a/tryton/config.py
+++ b/tryton/config.py
@@ -18,7 +18,8 @@ _ = gettext.gettext
def get_home_dir():
if os.name == 'nt':
- return os.path.join(os.environ['HOMEDRIVE'], os.environ['HOMEPATH'])
+ return os.path.join(os.environ['HOMEDRIVE'], os.environ['HOMEPATH']
+ ).decode(sys.getfilesystemencoding()).encode('utf-8')
return os.environ['HOME']
diff --git a/tryton/gui/main.py b/tryton/gui/main.py
index 4bed575..cf390f4 100644
--- a/tryton/gui/main.py
+++ b/tryton/gui/main.py
@@ -41,9 +41,9 @@ import tryton.plugins
from tryton.common.placeholder_entry import PlaceholderEntry
import pango
import time
-try:
+if os.environ.get('GTKOSXAPPLICATION'):
import gtk_osxapplication
-except ImportError:
+else:
gtk_osxapplication = None
try:
import gtkspell
diff --git a/tryton/gui/window/view_form/model/record.py b/tryton/gui/window/view_form/model/record.py
index bb65b7e..ed3e350 100644
--- a/tryton/gui/window/view_form/model/record.py
+++ b/tryton/gui/window/view_form/model/record.py
@@ -259,7 +259,8 @@ class Record(SignalEvent):
def get_timestamp(self):
result = {self.model_name + ',' + str(self.id): self._timestamp}
for name, field in self.group.fields.iteritems():
- result.update(field.get_timestamp(self))
+ if name in self._loaded:
+ result.update(field.get_timestamp(self))
return result
def pre_validate(self):
diff --git a/tryton/gui/window/view_form/view/list.py b/tryton/gui/window/view_form/view/list.py
index c490cc7..f5e83b8 100644
--- a/tryton/gui/window/view_form/view/list.py
+++ b/tryton/gui/window/view_form/view/list.py
@@ -211,7 +211,7 @@ class AdaptModelGroup(gtk.GenericTreeModel):
return False
children = record.children_group(self.children_field)
if children is None:
- return True
+ return False
length = len(children)
if self.__removed and self.__removed in children:
length -= 1
@@ -219,7 +219,10 @@ class AdaptModelGroup(gtk.GenericTreeModel):
def on_iter_children(self, record):
if record is None:
- return None
+ if self.group:
+ return self.group[0]
+ else:
+ return None
if self.children_field:
children = record.children_group(self.children_field)
if children:
@@ -227,15 +230,19 @@ class AdaptModelGroup(gtk.GenericTreeModel):
return None
def on_iter_n_children(self, record):
- if record is None or not self.children_field:
+ if record is None:
return len(self.group)
+ if not self.children_field:
+ return 0
return len(record.children_group(self.children_field))
def on_iter_nth_child(self, record, nth):
- if record is None or not self.children_field:
+ if record is None:
if nth < len(self.group):
return self.group[nth]
return None
+ if not self.children_field:
+ return None
if nth < len(record.children_group(self.children_field)):
return record.children_group(self.children_field)[nth]
return None
diff --git a/tryton/version.py b/tryton/version.py
index 844852b..2f76402 100644
--- a/tryton/version.py
+++ b/tryton/version.py
@@ -1,6 +1,6 @@
#This file is part of Tryton. The COPYRIGHT file at the top level of
#this repository contains the full copyright notices and license terms.
PACKAGE = "tryton"
-VERSION = "2.8.14"
+VERSION = "2.8.15"
LICENSE = "GPL-3"
WEBSITE = "http://www.tryton.org/"
--
tryton-client
More information about the tryton-debian-vcs
mailing list