[tryton-debian-vcs] tryton-client branch upstream-3.4 updated. upstream/3.4.4-1-g8826d00
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Mon Sep 21 12:24:42 UTC 2015
The following commit has been merged in the upstream-3.4 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-client.git;a=commitdiff;h=upstream/3.4.4-1-g8826d00
commit 8826d00dc8cdab50a964dc5eb1dcc24f0f95fb1e
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Sun Sep 20 19:52:10 2015 +0200
Adding upstream version 3.4.5.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/CHANGELOG b/CHANGELOG
index 80c0afa..f302f48 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.4.5 - 2015-09-08
+* Bug fixes (see mercurial logs for details)
+
Version 3.4.4 - 2015-05-19
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index e8b1e50..25827be 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: tryton
-Version: 3.4.4
+Version: 3.4.5
Summary: Tryton client
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/doc/usage.rst b/doc/usage.rst
index 863c8f3..0c5ce80 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 e8b1e50..25827be 100644
--- a/tryton.egg-info/PKG-INFO
+++ b/tryton.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: tryton
-Version: 3.4.4
+Version: 3.4.5
Summary: Tryton client
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/tryton/common/common.py b/tryton/common/common.py
index 2a3dfbd..32f2414 100644
--- a/tryton/common/common.py
+++ b/tryton/common/common.py
@@ -463,8 +463,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 be3c9ed..4e1be16 100644
--- a/tryton/config.py
+++ b/tryton/config.py
@@ -19,7 +19,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 fcdaec0..7681221 100644
--- a/tryton/gui/main.py
+++ b/tryton/gui/main.py
@@ -42,9 +42,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 5751903..202848b 100644
--- a/tryton/gui/window/view_form/model/record.py
+++ b/tryton/gui/window/view_form/model/record.py
@@ -274,7 +274,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 9c6bd04..602535b 100644
--- a/tryton/gui/window/view_form/view/list.py
+++ b/tryton/gui/window/view_form/view/list.py
@@ -224,7 +224,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
@@ -232,7 +232,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:
@@ -240,15 +243,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 b5dad88..3b3f5fc 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 = "3.4.4"
+VERSION = "3.4.5"
LICENSE = "GPL-3"
WEBSITE = "http://www.tryton.org/"
--
tryton-client
More information about the tryton-debian-vcs
mailing list