[tryton-debian-vcs] tryton-client branch debian-squeeze-1.6 created. ee8e618c526a8faf4d89b765b80e0b0bfcd2c0b2

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Wed Nov 27 16:51:02 UTC 2013


The following commit has been merged in the debian-squeeze-1.6 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-client.git;a=commitdiff;h=ee8e618c526a8faf4d89b765b80e0b0bfcd2c0b2
commit ee8e618c526a8faf4d89b765b80e0b0bfcd2c0b2
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Sat Nov 20 21:29:03 2010 +0100

    Releasing debian version 1.6.2-0~50squeeze1.

diff --git a/debian/changelog b/debian/changelog
index 4613751..1056509 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+tryton-client (1.6.2-0~50squeeze1) unstable; urgency=low
+
+  * Merging upstream version 1.6.2.
+  * Changing my email address.
+
+ -- Mathias Behrle <mathiasb at m9s.biz>  Sat, 20 Nov 2010 21:16:41 +0100
+
 tryton-client (1.6.1-1) unstable; urgency=low
 
   * Wrapping copyright.
commit b700e818ab1ac13cde1e93497fee693d8fa6ac02
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Sat Nov 20 21:16:01 2010 +0100

    Changing my email address.

diff --git a/debian/control b/debian/control
index c5ad397..f9423d9 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Priority: optional
 Maintainer: Debian Tryton Maintainers <tryton at lists.debian-maintainers.org>
 Uploaders:
  Daniel Baumann <daniel at debian.org>,
- Mathias Behrle <mathiasb at mbsolutions.selfip.biz>
+ Mathias Behrle <mathiasb at m9s.biz>
 Dm-Upload-Allowed: yes
 Build-Depends: debhelper (>= 7), python, python-setuptools, python-support
 Standards-Version: 3.9.0
diff --git a/debian/copyright b/debian/copyright
index 751d07f..0f4974b 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -56,7 +56,7 @@ License: GPL-3+
 Files: debian/*
 Copyright:
  (C) 2009-2010 Daniel Baumann <daniel at debian.org>
- (C) 2010 Mathias Behrle <mathiasb at mbsolutions.selfip.biz>
+ (C) 2010 Mathias Behrle <mathiasb at m9s.biz>
 License: GPL-3+
  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
commit 0d3d34acb88af990f16799791baa08fcb1af5ced
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Sat Nov 20 21:00:49 2010 +0100

    Merging upstream version 1.6.2.

diff --git a/CHANGELOG b/CHANGELOG
index f0ccabb..6a9c5ef 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 1.6.2 - 2010-11-02
+* Bug fixes (see mercurial logs for details)
+
 Version 1.6.1 - 2010-07-25
 * Bug fixes (see mercurial logs for details)
 
diff --git a/PKG-INFO b/PKG-INFO
index a53c016..19f31da 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: tryton
-Version: 1.6.1
+Version: 1.6.2
 Summary: Tryton client
 Home-page: http://www.tryton.org/
 Author: B2CK
diff --git a/tryton.egg-info/PKG-INFO b/tryton.egg-info/PKG-INFO
index a53c016..19f31da 100644
--- a/tryton.egg-info/PKG-INFO
+++ b/tryton.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: tryton
-Version: 1.6.1
+Version: 1.6.2
 Summary: Tryton client
 Home-page: http://www.tryton.org/
 Author: B2CK
diff --git a/tryton/gui/window/view_form/model/record.py b/tryton/gui/window/view_form/model/record.py
index 436e928..d101f6d 100644
--- a/tryton/gui/window/view_form/model/record.py
+++ b/tryton/gui/window/view_form/model/record.py
@@ -19,7 +19,7 @@ class EvalEnvironment(dict):
 
     def __getitem__(self, item):
         if item == '_parent_' + self.parent.parent_name and self.parent.parent:
-            return EvalEnvironment(self.parent.parent)
+            return EvalEnvironment(self.parent.parent, self.check_load)
         return self.parent.get_eval(check_load=self.check_load)[item]
 
     def __getattr__(self, item):
@@ -260,8 +260,9 @@ class Record(SignalEvent):
             self.signal('record-changed')
         return change
 
-    def validate(self):
-        self._check_load()
+    def validate(self, check_load=True):
+        if check_load:
+            self._check_load()
         res = True
         for field in self.group.fields.itervalues():
             if not field.validate(self):
@@ -342,7 +343,7 @@ class Record(SignalEvent):
         if self.id < 0:
             return
         self['*']
-        self.validate()
+        self.validate(check_load=False)
 
     def expr_eval(self, expr, check_load=False):
         if not isinstance(expr, basestring):
diff --git a/tryton/gui/window/view_form/screen/screen.py b/tryton/gui/window/view_form/screen/screen.py
index 88f03e6..1feea02 100644
--- a/tryton/gui/window/view_form/screen/screen.py
+++ b/tryton/gui/window/view_form/screen/screen.py
@@ -506,7 +506,7 @@ class Screen(SignalEvent):
                 context.update(rpc.CONTEXT)
                 context.update(self.context)
                 context['_timestamp'] = self.current_record.get_timestamp()
-                reload_ids = self.group.on_write_ids(record_id)
+                reload_ids = self.group.on_write_ids([record_id])
                 if reload_ids and record_id in reload_ids:
                     reload_ids.remove(record_id)
                 args = ('model', self.model_name, 'delete', [record_id],
diff --git a/tryton/gui/window/view_form/view/list_gtk/parser.py b/tryton/gui/window/view_form/view/list_gtk/parser.py
index c5363c8..c8cafea 100644
--- a/tryton/gui/window/view_form/view/list_gtk/parser.py
+++ b/tryton/gui/window/view_form/view/list_gtk/parser.py
@@ -386,6 +386,7 @@ class Datetime(Date):
         super(Datetime, self).__init__(field_name, model_name, treeview,
                 window, attrs=attrs)
         self.display_format = date_format() + ' ' + HM_FORMAT
+        self.renderer.format = self.display_format
 
     def get_textual_value(self, record):
         value = record[self.field_name].get_client(record)
diff --git a/tryton/gui/window/view_tree/view_tree.py b/tryton/gui/window/view_tree/view_tree.py
index 0a80666..ea94781 100644
--- a/tryton/gui/window/view_tree/view_tree.py
+++ b/tryton/gui/window/view_tree/view_tree.py
@@ -293,35 +293,6 @@ class ViewTreeModel(gtk.GenericTreeModel, gtk.TreeSortable):
             return None
         return node[:-1]
 
-    def cus_refresh(self):
-        tree = self.tree
-        tree[0][2] = None
-
-    def _cus_row_find(self, ids_res):
-        tree = self.tree
-        try:
-            ids = ids_res[:]
-            while len(ids)>0:
-                if ids[-1] in self.roots:
-                    ids.pop()
-                    break
-                ids.pop()
-            path = []
-            while ids != []:
-                path.append(0)
-                val = ids.pop()
-                i = iter(tree)
-                while True:
-                    node = i.next()
-                    if node[0] == val:
-                        break
-                    path[-1] += 1
-                if (node[2] is None) and (ids != []):
-                    return None
-                tree = node[2]
-            return (tuple(path), node)
-        except:
-            return None
 
 class ViewTree(object):
     "View tree"
diff --git a/tryton/rpc.py b/tryton/rpc.py
index 3899fcd..bb627d2 100644
--- a/tryton/rpc.py
+++ b/tryton/rpc.py
@@ -9,7 +9,7 @@ from tryton.fingerprints import Fingerprints
 from tryton.config import get_config_dir
 
 _SOCK = None
-_USER = 0
+_USER = None
 _USERNAME = ''
 _SESSION = ''
 _DATABASE = ''
@@ -141,11 +141,11 @@ def login(username, password, host, port, database):
             _SOCK.reconnect()
         except (socket.error, RuntimeError):
             pass
-        _USER = 0
+        _USER = None
         _SESSION = ''
         return -1
     if not res:
-        _USER = 0
+        _USER = None
         _SESSION = ''
         return -2
     _USER = res[0]
@@ -174,7 +174,7 @@ def logout():
             pass
         _SOCK.disconnect()
         _SOCK = None
-    _USER = 0
+    _USER = None
     _USERNAME = ''
     _SESSION = ''
     _DATABASE = ''
diff --git a/tryton/version.py b/tryton/version.py
index c5d8547..e7943ec 100644
--- a/tryton/version.py
+++ b/tryton/version.py
@@ -1,7 +1,7 @@
 #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 = "1.6.1"
+VERSION = "1.6.2"
 LICENSE = "GPL-3"
 WEBSITE = "http://www.tryton.org/"
 
-- 
tryton-client



More information about the tryton-debian-vcs mailing list