SHA256
1
0
forked from pool/tryton

73 Commits

Author SHA256 Message Date
61f85e6a45 Accepting request 1323912 from Application:ERP:GNUHealth:Factory
bugfix version

OBS-URL: https://build.opensuse.org/request/show/1323912
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=32
2025-12-22 21:49:15 +00:00
d849ca3e93 Update to tryton Version 7.0.31 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=54
2025-12-21 11:01:52 +00:00
4a2f798ba7 Accepting request 1319273 from Application:ERP:GNUHealth:Factory
Security Release

OBS-URL: https://build.opensuse.org/request/show/1319273
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=31
2025-11-24 13:11:06 +00:00
12f43ba45a Update to tryton Version 7.0.29 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=53
2025-11-22 19:20:27 +00:00
9fb234c6f1 Accepting request 1289063 from Application:ERP:GNUHealth:Factory
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1289063
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=30
2025-07-02 16:17:01 +00:00
ae04b22529 OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=52 2025-07-02 07:22:04 +00:00
ba6c5dc90d OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=51 2025-07-02 07:16:49 +00:00
0b365c735b OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=50 2025-06-29 08:41:49 +00:00
a2ef47c414 version bump
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=49
2025-06-29 08:20:01 +00:00
7a06c8f560 Accepting request 1287652 from Application:ERP:GNUHealth:Factory
OBS-URL: https://build.opensuse.org/request/show/1287652
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=29
2025-06-23 13:03:36 +00:00
027c0f578a - 000-pygtkcompat.diff removed (adapted in source)
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=48
2025-06-22 09:40:46 +00:00
df153b1029 Update to tryton Version 6.0.54 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=47
2025-06-15 07:12:34 +00:00
fc5fd66a8b Update to tryton Version 6.0.53 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=46
2025-05-03 10:55:17 +00:00
008a5058d2 Accepting request 1252368 from Application:ERP:GNUHealth:Factory
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1252368
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=28
2025-03-12 19:13:55 +00:00
a9868da7d9 Update to tryton Version 6.0.50 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=45
2025-03-05 09:16:29 +00:00
a7e3c8a905 Accepting request 1234608 from Application:ERP:GNUHealth:Factory
bugfx version

OBS-URL: https://build.opensuse.org/request/show/1234608
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=27
2025-01-05 14:28:43 +00:00
57738f60bb Update to tryton Version 6.0.48 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=44
2025-01-02 17:36:06 +00:00
cb4b22150c Accepting request 1227716 from Application:ERP:GNUHealth:Factory
bugix version

OBS-URL: https://build.opensuse.org/request/show/1227716
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=26
2024-12-02 15:59:34 +00:00
8bb206569d Update to tryton Version 6.0.46 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=43
2024-12-02 10:03:27 +00:00
9497b25d2e Update to tryton Version 6.0.43 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=42
2024-09-17 07:59:16 +00:00
2e3dcba446 Accepting request 1191470 from Application:ERP:GNUHealth:Factory
bugfix version

OBS-URL: https://build.opensuse.org/request/show/1191470
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=25
2024-08-05 15:21:27 +00:00
e6b6833cea Accepting request 1184806 from Application:ERP:GNUHealth:Factory
bugfix version

OBS-URL: https://build.opensuse.org/request/show/1184806
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=24
2024-07-02 16:19:18 +00:00
e5993c58ad Update to tryton Version 6.0.40 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=40
2024-07-02 09:11:41 +00:00
ccb3ec1def Accepting request 1172361 from Application:ERP:GNUHealth:Factory
security update Tryton issue #13142

OBS-URL: https://build.opensuse.org/request/show/1172361
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=23
2024-05-07 16:03:22 +00:00
613eff57ec Update to tryton Version 6.0.39 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=39
2024-05-07 08:02:26 +00:00
56a857ce43 - sources are not signed anymore
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=38
2024-04-29 17:39:24 +00:00
7e21867954 Accepting request 1151860 from Application:ERP:GNUHealth:Factory
OBS-URL: https://build.opensuse.org/request/show/1151860
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=22
2024-02-26 18:49:44 +00:00
9e935767f5 Accepting request 1151836 from home:pgajdos:t
- Use %patch -P N instead of deprecated %patchN.

OBS-URL: https://build.opensuse.org/request/show/1151836
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=37
2024-02-26 16:42:33 +00:00
1cfcda24ab Update to tryton Version 6.0.35 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=36
2024-02-03 19:07:44 +00:00
00f72d09de Accepting request 1140814 from Application:ERP:GNUHealth:Factory
python 311 (forwarded request 1140797 from DocB)

OBS-URL: https://build.opensuse.org/request/show/1140814
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=21
2024-01-23 21:56:30 +00:00
f3614e1c0c Accepting request 1140797 from Application:ERP:GNUHealth:4.4
python 311

OBS-URL: https://build.opensuse.org/request/show/1140797
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=35
2024-01-23 10:05:06 +00:00
74dc41d139 Accepting request 1135781 from Application:ERP:GNUHealth:Factory
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1135781
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=20
2024-01-03 11:25:54 +00:00
9a82ed207d Update to tryton Version 6.0.33 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=34
2023-12-23 17:52:56 +00:00
185543ef42 Accepting request 1127524 from Application:ERP:GNUHealth:Factory
bugfix release

OBS-URL: https://build.opensuse.org/request/show/1127524
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=19
2023-11-20 20:19:16 +00:00
24a5407304 Update to tryton Version 6.0.31 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=33
2023-11-18 09:52:08 +00:00
81dc497131 Accepting request 1125403 from Application:ERP:GNUHealth:Factory
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1125403
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=18
2023-11-13 21:21:19 +00:00
2c50511621 Update to tryton Version 6.0.30 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=32
2023-11-04 10:13:42 +00:00
b10c035474 Accepting request 1116282 from Application:ERP:GNUHealth:Factory
bugfix release

OBS-URL: https://build.opensuse.org/request/show/1116282
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=17
2023-10-10 18:58:32 +00:00
460836e87f Update to tryton Version 6.0.29 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=31
2023-10-08 07:11:09 +00:00
ff15f632a1 Accepting request 1109472 from Application:ERP:GNUHealth:Factory
bugfix release

OBS-URL: https://build.opensuse.org/request/show/1109472
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=16
2023-09-07 19:13:37 +00:00
68202a752b Update to tryton Version 6.0.28 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=30
2023-09-07 08:08:38 +00:00
f006c67a86 Accepting request 1088645 from Application:ERP:GNUHealth:Factory
bugfix

OBS-URL: https://build.opensuse.org/request/show/1088645
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=15
2023-05-23 12:55:28 +00:00
f21aa0de46 OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=29 2023-05-20 17:37:24 +00:00
ad75c5f116 - Version 6.0.27 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=28
2023-05-20 17:34:35 +00:00
52b45c27df Accepting request 1071007 from Application:ERP:GNUHealth:Factory
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1071007
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=14
2023-03-12 18:47:55 +00:00
fb12d748c3 Update to tryton Version 6.0.26 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=27
2023-03-05 16:02:00 +00:00
c4e5da2f15 Accepting request 1066724 from Application:ERP:GNUHealth:Factory
bugfix version

OBS-URL: https://build.opensuse.org/request/show/1066724
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=13
2023-02-20 16:46:14 +00:00
aa6f9e489b Update to tryton Version 6.0.25 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=26
2023-02-19 18:20:04 +00:00
0334241cf8 Accepting request 1064679 from Application:ERP:GNUHealth:Factory
bugfix version

OBS-URL: https://build.opensuse.org/request/show/1064679
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=12
2023-02-12 18:14:50 +00:00
471f122f39 OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=25 2023-02-07 10:22:58 +00:00
15329e330e Accepting request 1060527 from Application:ERP:GNUHealth:Factory
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1060527
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=11
2023-01-24 18:43:08 +00:00
1cd30e666d Update to tryton Version 6.0.23 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=22
2023-01-16 21:18:52 +00:00
472951c3ae Accepting request 1046512 from Application:ERP:GNUHealth:Factory
bugfix version

OBS-URL: https://build.opensuse.org/request/show/1046512
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=10
2023-01-03 14:06:24 +00:00
469e8b9b5f Update to tryton Version 6.0.22 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=20
2023-01-03 12:25:39 +00:00
5a6cd4dadc Accepting request 1038265 from Application:ERP:GNUHealth:Factory
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1038265
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=9
2022-11-26 17:45:28 +00:00
0e9f559b29 Update to tryton Version 6.0.21 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=18
2022-11-18 19:04:44 +00:00
066bb5796d Accepting request 1033826 from Application:ERP:GNUHealth:Factory
bugfix version

OBS-URL: https://build.opensuse.org/request/show/1033826
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=8
2022-11-06 11:42:57 +00:00
244b1c2936 Update to tryton Version 6.0.20 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=16
2022-11-06 09:02:37 +00:00
e12a687df1 Accepting request 1031036 from Application:ERP:GNUHealth:Factory
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1031036
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=7
2022-10-25 09:20:21 +00:00
9f98084414 Update to tryton Version 6.0.19 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=14
2022-10-18 06:50:23 +00:00
bc945ec9ff Accepting request 1001866 from Application:ERP:GNUHealth:Factory
bugfix version

OBS-URL: https://build.opensuse.org/request/show/1001866
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=6
2022-09-08 12:23:34 +00:00
c779e83e5e Update to tryton Version 6.0.18 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=12
2022-09-07 07:06:02 +00:00
a3dfebc99f Accepting request 997705 from Application:ERP:GNUHealth:Factory
bugfix version

OBS-URL: https://build.opensuse.org/request/show/997705
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=5
2022-08-18 14:49:25 +00:00
0c83daf010 Update to tryton Version 6.0.17 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=10
2022-08-18 09:25:01 +00:00
a88c32af55 Accepting request 977137 from Application:ERP:GNUHealth:Factory
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/977137
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=4
2022-05-14 20:56:57 +00:00
5a0a850f40 Update to tryton Version 6.0.16 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=8
2022-05-07 09:07:32 +00:00
3d786a9b38 Accepting request 971011 from Application:ERP:GNUHealth:Factory
bugfix version

OBS-URL: https://build.opensuse.org/request/show/971011
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=3
2022-04-20 14:57:18 +00:00
f99f9f6c36 Update to tryton Version 6.0.15 - Bugfix Release
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=6
2022-04-18 19:20:22 +00:00
de552d5ed0 Accepting request 961069 from Application:ERP:GNUHealth:Factory
license string corrected

OBS-URL: https://build.opensuse.org/request/show/961069
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=2
2022-03-11 20:41:38 +00:00
9be2dc4e8c - license string corrected
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=4
2022-03-11 11:47:19 +00:00
d759d17456 Accepting request 960005 from Application:ERP:GNUHealth:Factory
Tryton frontend is now working again, resubmitting

OBS-URL: https://build.opensuse.org/request/show/960005
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tryton?expand=0&rev=1
2022-03-07 17:40:57 +00:00
75d0d081b8 OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=2 2022-03-07 15:31:13 +00:00
fb7ed4227a Accepting request 959300 from Application:ERP:GNUHealth:4.0
security bugfix

OBS-URL: https://build.opensuse.org/request/show/959300
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/tryton?expand=0&rev=1
2022-03-05 08:49:54 +00:00
7 changed files with 23 additions and 503 deletions

View File

@@ -1,439 +0,0 @@
diff -U 3 -dHrN -- a/tryton/gui/window/view_form/view/generictreemodel.py b/tryton/gui/window/view_form/view/generictreemodel.py
--- a/tryton/gui/window/view_form/view/generictreemodel.py 1970-01-01 01:00:00.000000000 +0100
+++ b/tryton/gui/window/view_form/view/generictreemodel.py 2021-05-11 12:18:32.392430826 +0200
@@ -0,0 +1,423 @@
+# -*- Mode: Python; py-indent-offset: 4 -*-
+# generictreemodel - GenericTreeModel implementation for pygtk compatibility.
+# Copyright (C) 2013 Simon Feltman
+#
+# generictreemodel.py: GenericTreeModel implementation for pygtk compatibility
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, see <http://www.gnu.org/licenses/>.
+
+
+# System
+import sys
+import random
+import collections
+import ctypes
+import platform
+
+# GObject
+from gi.repository import GObject
+from gi.repository import Gtk
+
+
+class _CTreeIter(ctypes.Structure):
+ _fields_ = [('stamp', ctypes.c_int),
+ ('user_data', ctypes.c_void_p),
+ ('user_data2', ctypes.c_void_p),
+ ('user_data3', ctypes.c_void_p)]
+
+ @classmethod
+ def from_iter(cls, iter):
+ offset = sys.getsizeof(object()) # size of PyObject_HEAD
+ return ctypes.POINTER(cls).from_address(id(iter) + offset)
+
+
+if platform.python_implementation() == "PyPy":
+ def _get_user_data_as_pyobject(iter):
+ raise NotImplementedError("Not yet supported under PyPy")
+else:
+ def _get_user_data_as_pyobject(iter):
+ citer = _CTreeIter.from_iter(iter)
+ return ctypes.cast(citer.contents.user_data, ctypes.py_object).value
+
+
+def handle_exception(default_return):
+ """Returns a function which can act as a decorator for wrapping exceptions and
+ returning "default_return" upon an exception being thrown.
+
+ This is used to wrap Gtk.TreeModel "do_" method implementations so we can return
+ a proper value from the override upon an exception occurring with client code
+ implemented by the "on_" methods.
+ """
+ def decorator(func):
+ def wrapped_func(*args, **kargs):
+ try:
+ return func(*args, **kargs)
+ except:
+ # Use excepthook directly to avoid any printing to the screen
+ # if someone installed an except hook.
+ sys.excepthook(*sys.exc_info())
+ return default_return
+ return wrapped_func
+ return decorator
+
+
+class GenericTreeModel(GObject.GObject, Gtk.TreeModel):
+ """A base implementation of a Gtk.TreeModel for python.
+
+ The GenericTreeModel eases implementing the Gtk.TreeModel interface in Python.
+ The class can be subclassed to provide a TreeModel implementation which works
+ directly with Python objects instead of iterators.
+
+ All of the on_* methods should be overridden by subclasses to provide the
+ underlying implementation a way to access custom model data. For the purposes of
+ this API, all custom model data supplied or handed back through the overridable
+ API will use the argument names: node, parent, and child in regards to user data
+ python objects.
+
+ The create_tree_iter, set_user_data, invalidate_iters, iter_is_valid methods are
+ available to help manage Gtk.TreeIter objects and their Python object references.
+
+ GenericTreeModel manages a pool of user data nodes that have been used with iters.
+ This pool stores a references to user data nodes as a dictionary value with the
+ key being the integer id of the data. This id is what the Gtk.TreeIter objects
+ use to reference data in the pool.
+ References will be removed from the pool when the model is deleted or explicitly
+ by using the optional "node" argument to the "row_deleted" method when notifying
+ the model of row deletion.
+ """
+
+ leak_references = GObject.Property(default=True, type=bool,
+ blurb="If True, strong references to user data attached to iters are "
+ "stored in a dictionary pool (default). Otherwise the user data is "
+ "stored as a raw pointer to a python object without a reference.")
+
+ #
+ # Methods
+ #
+ def __init__(self):
+ """Initialize. Make sure to call this from derived classes if overridden."""
+ super(GenericTreeModel, self).__init__()
+ self.stamp = 0
+
+ #: Dictionary of (id(user_data): user_data), used when leak-refernces=False
+ self._held_refs = dict()
+
+ # Set initial stamp
+ self.invalidate_iters()
+
+ def iter_depth_first(self):
+ """Depth-first iteration of the entire TreeModel yielding the python nodes."""
+ stack = collections.deque([None])
+ while stack:
+ it = stack.popleft()
+ if it is not None:
+ yield self.get_user_data(it)
+ children = [self.iter_nth_child(it, i) for i in range(self.iter_n_children(it))]
+ stack.extendleft(reversed(children))
+
+ def invalidate_iter(self, iter):
+ """Clear user data and its reference from the iter and this model."""
+ iter.stamp = 0
+ if iter.user_data:
+ if iter.user_data in self._held_refs:
+ del self._held_refs[iter.user_data]
+ iter.user_data = None
+
+ def invalidate_iters(self):
+ """
+ This method invalidates all TreeIter objects associated with this custom tree model
+ and frees their locally pooled references.
+ """
+ self.stamp = random.randint(-2147483648, 2147483647)
+ self._held_refs.clear()
+
+ def iter_is_valid(self, iter):
+ """
+ :Returns:
+ True if the gtk.TreeIter specified by iter is valid for the custom tree model.
+ """
+ return iter.stamp == self.stamp
+
+ def get_user_data(self, iter):
+ """Get the user_data associated with the given TreeIter.
+
+ GenericTreeModel stores arbitrary Python objects mapped to instances of Gtk.TreeIter.
+ This method allows to retrieve the Python object held by the given iterator.
+ """
+ if self.leak_references:
+ return self._held_refs[iter.user_data]
+ else:
+ return _get_user_data_as_pyobject(iter)
+
+ def set_user_data(self, iter, user_data):
+ """Applies user_data and stamp to the given iter.
+
+ If the models "leak_references" property is set, a reference to the
+ user_data is stored with the model to ensure we don't run into bad
+ memory problems with the TreeIter.
+ """
+ iter.user_data = id(user_data)
+
+ if user_data is None:
+ self.invalidate_iter(iter)
+ else:
+ iter.stamp = self.stamp
+ if self.leak_references:
+ self._held_refs[iter.user_data] = user_data
+
+ def create_tree_iter(self, user_data):
+ """Create a Gtk.TreeIter instance with the given user_data specific for this model.
+
+ Use this method to create Gtk.TreeIter instance instead of directly calling
+ Gtk.Treeiter(), this will ensure proper reference managment of wrapped used_data.
+ """
+ iter = Gtk.TreeIter()
+ self.set_user_data(iter, user_data)
+ return iter
+
+ def _create_tree_iter(self, data):
+ """Internal creation of a (bool, TreeIter) pair for returning directly
+ back to the view interfacing with this model."""
+ if data is None:
+ return (False, None)
+ else:
+ it = self.create_tree_iter(data)
+ return (True, it)
+
+ def row_deleted(self, path, node=None):
+ """Notify the model a row has been deleted.
+
+ Use the node parameter to ensure the user_data reference associated
+ with the path is properly freed by this model.
+
+ :Parameters:
+ path : Gtk.TreePath
+ Path to the row that has been deleted.
+ node : object
+ Python object used as the node returned from "on_get_iter". This is
+ optional but ensures the model will not leak references to this object.
+ """
+ super(GenericTreeModel, self).row_deleted(path)
+ node_id = id(node)
+ if node_id in self._held_refs:
+ del self._held_refs[node_id]
+
+ #
+ # GtkTreeModel Interface Implementation
+ #
+ @handle_exception(0)
+ def do_get_flags(self):
+ """Internal method."""
+ return self.on_get_flags()
+
+ @handle_exception(0)
+ def do_get_n_columns(self):
+ """Internal method."""
+ return self.on_get_n_columns()
+
+ @handle_exception(GObject.TYPE_INVALID)
+ def do_get_column_type(self, index):
+ """Internal method."""
+ return self.on_get_column_type(index)
+
+ @handle_exception((False, None))
+ def do_get_iter(self, path):
+ """Internal method."""
+ return self._create_tree_iter(self.on_get_iter(path))
+
+ @handle_exception(False)
+ def do_iter_next(self, iter):
+ """Internal method."""
+ if iter is None:
+ next_data = self.on_iter_next(None)
+ else:
+ next_data = self.on_iter_next(self.get_user_data(iter))
+
+ self.set_user_data(iter, next_data)
+ return next_data is not None
+
+ @handle_exception(None)
+ def do_get_path(self, iter):
+ """Internal method."""
+ path = self.on_get_path(self.get_user_data(iter))
+ if path is None:
+ return None
+ else:
+ return Gtk.TreePath(path)
+
+ @handle_exception(None)
+ def do_get_value(self, iter, column):
+ """Internal method."""
+ return self.on_get_value(self.get_user_data(iter), column)
+
+ @handle_exception((False, None))
+ def do_iter_children(self, parent):
+ """Internal method."""
+ data = self.get_user_data(parent) if parent else None
+ return self._create_tree_iter(self.on_iter_children(data))
+
+ @handle_exception(False)
+ def do_iter_has_child(self, parent):
+ """Internal method."""
+ return self.on_iter_has_child(self.get_user_data(parent))
+
+ @handle_exception(0)
+ def do_iter_n_children(self, iter):
+ """Internal method."""
+ if iter is None:
+ return self.on_iter_n_children(None)
+ return self.on_iter_n_children(self.get_user_data(iter))
+
+ @handle_exception((False, None))
+ def do_iter_nth_child(self, parent, n):
+ """Internal method."""
+ if parent is None:
+ data = self.on_iter_nth_child(None, n)
+ else:
+ data = self.on_iter_nth_child(self.get_user_data(parent), n)
+ return self._create_tree_iter(data)
+
+ @handle_exception((False, None))
+ def do_iter_parent(self, child):
+ """Internal method."""
+ return self._create_tree_iter(self.on_iter_parent(self.get_user_data(child)))
+
+ @handle_exception(None)
+ def do_ref_node(self, iter):
+ self.on_ref_node(self.get_user_data(iter))
+
+ @handle_exception(None)
+ def do_unref_node(self, iter):
+ self.on_unref_node(self.get_user_data(iter))
+
+ #
+ # Python Subclass Overridables
+ #
+ def on_get_flags(self):
+ """Overridable.
+
+ :Returns Gtk.TreeModelFlags:
+ The flags for this model. See: Gtk.TreeModelFlags
+ """
+ raise NotImplementedError
+
+ def on_get_n_columns(self):
+ """Overridable.
+
+ :Returns:
+ The number of columns for this model.
+ """
+ raise NotImplementedError
+
+ def on_get_column_type(self, index):
+ """Overridable.
+
+ :Returns:
+ The column type for the given index.
+ """
+ raise NotImplementedError
+
+ def on_get_iter(self, path):
+ """Overridable.
+
+ :Returns:
+ A python object (node) for the given TreePath.
+ """
+ raise NotImplementedError
+
+ def on_iter_next(self, node):
+ """Overridable.
+
+ :Parameters:
+ node : object
+ Node at current level.
+
+ :Returns:
+ A python object (node) following the given node at the current level.
+ """
+ raise NotImplementedError
+
+ def on_get_path(self, node):
+ """Overridable.
+
+ :Returns:
+ A TreePath for the given node.
+ """
+ raise NotImplementedError
+
+ def on_get_value(self, node, column):
+ """Overridable.
+
+ :Parameters:
+ node : object
+ column : int
+ Column index to get the value from.
+
+ :Returns:
+ The value of the column for the given node."""
+ raise NotImplementedError
+
+ def on_iter_children(self, parent):
+ """Overridable.
+
+ :Returns:
+ The first child of parent or None if parent has no children.
+ If parent is None, return the first node of the model.
+ """
+ raise NotImplementedError
+
+ def on_iter_has_child(self, node):
+ """Overridable.
+
+ :Returns:
+ True if the given node has children.
+ """
+ raise NotImplementedError
+
+ def on_iter_n_children(self, node):
+ """Overridable.
+
+ :Returns:
+ The number of children for the given node. If node is None,
+ return the number of top level nodes.
+ """
+ raise NotImplementedError
+
+ def on_iter_nth_child(self, parent, n):
+ """Overridable.
+
+ :Parameters:
+ parent : object
+ n : int
+ Index of child within parent.
+
+ :Returns:
+ The child for the given parent index starting at 0. If parent None,
+ return the top level node corresponding to "n".
+ If "n" is larger then available nodes, return None.
+ """
+ raise NotImplementedError
+
+ def on_iter_parent(self, child):
+ """Overridable.
+
+ :Returns:
+ The parent node of child or None if child is a top level node."""
+ raise NotImplementedError
+
+ def on_ref_node(self, node):
+ pass
+
+ def on_unref_node(self, node):
+ pass
diff -U 3 -dHrN -- a/tryton/gui/window/view_form/view/list.py b/tryton/gui/window/view_form/view/list.py
--- a/tryton/gui/window/view_form/view/list.py 2021-04-27 09:36:11.000000000 +0200
+++ b/tryton/gui/window/view_form/view/list.py 2021-05-11 12:20:35.783989890 +0200
@@ -7,7 +7,7 @@
from functools import wraps
from gi.repository import Gdk, GLib, GObject, Gtk
-from pygtkcompat.generictreemodel import GenericTreeModel
+from .generictreemodel import GenericTreeModel
from tryton.config import CONFIG
from tryton.common.cellrendererbutton import CellRendererButton

View File

@@ -1,40 +0,0 @@
Description: Disable the version check for new upstream versions.
This check can mainly serve certain closed source binary distributions,
but is not adequate for free distributions managing their packages with
their respective package manager. Users of those free distributions will
only be confused by the announce of a new version and will in the worst
case spoil their system by trying to install a version provided by the
upstream link.
The unfriendlyness of this 'feature' was extensivly discussed to no avail
on https://discuss.tryton.org/t/notify-user-about-new-client-version/
Author: Mathias Behrle <mbehrle@debian.org>
Bug: https://bugs.tryton.org/issue7033
Forwarded: not-needed
Adaption for Tryton 6: Axel Braun <DocB@opensuse.org>
diff -U 3 -dHrN a/tryton/config.py b/tryton/config.py
--- a/tryton/config.py 2021-09-27 23:40:00.000000000 +0200
+++ b/tryton/config.py 2021-10-07 21:24:31.560694731 +0200
@@ -53,7 +53,8 @@
'client.language_direction': 'ltr',
'client.email': '',
'client.limit': 1000,
- 'client.check_version': True,
+# Check version not required for *nix systems
+ 'client.check_version': False,
'client.bus_timeout': 10 * 60,
'icon.colors': '#3465a4,#555753,#cc0000',
'tree.colors': '#777,#198754,#ffc107,#dc3545',
diff -U 3 -dHrN a/tryton/gui/main.py b/tryton/gui/main.py
--- a/tryton/gui/main.py 2021-09-27 23:40:00.000000000 +0200
+++ b/tryton/gui/main.py 2021-10-07 21:25:41.532349966 +0200
@@ -301,7 +301,8 @@
section.append(_("PDA Mode"), 'app.mode-pda')
section.append(_("Search Limit..."), 'app.search-limit')
- section.append(_("Check Version"), 'app.check-version')
+# Check version not required for *nix systems
+# section.append(_("Check Version"), 'app.check-version')
menu.append_section(_("Options"), section)

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:189b4418b9066302b348a418b35591900646d28222752081d62c2ea72848bee0
size 528332

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0b99b40adc434d791cd16254bc957ecd910d59dd402f00f903a94ac9bee13a4e
size 528517

3
tryton-7.0.31.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f93a86fe2366f88e52204a1937840ac1d625cdffdcaf3a51eda4d649fcf3b061
size 632172

View File

@@ -1,27 +1,34 @@
-------------------------------------------------------------------
Sat Aug 3 08:11:49 UTC 2024 - Axel Braun <axel.braun@gmx.de>
Sun Dec 21 11:01:49 UTC 2025 - Axel Braun <axel.braun@gmx.de>
- Version 6.0.41 - Bugfix Release
- Version 7.0.31 - Bugfix Release
-------------------------------------------------------------------
Tue Jul 2 09:11:38 UTC 2024 - Axel Braun <axel.braun@gmx.de>
Sat Nov 22 19:20:20 UTC 2025 - Axel Braun <axel.braun@gmx.de>
- Version 6.0.40 - Bugfix Release
- Version 7.0.29 - Bugfix Release
-------------------------------------------------------------------
Tue May 7 08:02:19 UTC 2024 - Axel Braun <axel.braun@gmx.de>
Sun Jun 15 07:17:49 UTC 2025 - Axel Braun <axel.braun@gmx.de>
- Version 6.0.39 - Bugfix Release
- Version 7.0.27 - Bugfix Release
-------------------------------------------------------------------
Mon Apr 29 17:38:49 UTC 2024 - Axel Braun <axel.braun@gmx.de>
Sat May 3 10:50:02 UTC 2025 - Axel Braun <axel.braun@gmx.de>
- sources are not signed anymore
- Version 7.0.25 - Bugfix Release
-------------------------------------------------------------------
Mon Feb 26 16:06:49 UTC 2024 - pgajdos@suse.com
Sun Oct 13 06:52:36 UTC 2024 - Axel Braun <axel.braun@gmx.de>
- Use %patch -P N instead of deprecated %patchN.
- Version 7.0.15 - Bugfix Release
-------------------------------------------------------------------
Sun Feb 18 16:34:07 UTC 2024 - Axel Braun <axel.braun@gmx.de>
- version 7.0
000-pygtkcompat.diff removed
001-disable-version-check.diff removed
-------------------------------------------------------------------
Sat Feb 3 19:07:35 UTC 2024 - Axel Braun <axel.braun@gmx.de>

View File

@@ -16,7 +16,7 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define majorver 6.0
%define majorver 7.0
%if 0%{?suse_version} >= 1550
%define pythons python3
@@ -30,18 +30,13 @@
Name: tryton
Version: %{majorver}.41
Version: %{majorver}.31
Release: 0
Summary: The client of the Tryton application platform
License: GPL-3.0-or-later
Group: Productivity/Office/Management
URL: http://www.tryton.org/
Source: http://downloads.tryton.org/%{majorver}/%{name}-%{version}.tar.gz
## Source1: http://downloads.tryton.org/%{majorver}/%{name}-%{version}.tar.gz.asc
## Source2: https://keybase.io/cedrickrier/pgp_keys.asc?fingerprint=7C5A4360F6DF81ABA91FD54D6FF50AFE03489130#/%{name}.keyring
Patch0: 000-pygtkcompat.diff
Patch1: 001-disable-version-check.diff
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -79,7 +74,7 @@ It is the core base of an Open Source ERP.
It provides modularity, scalability and security.
%prep
%autosetup -p1
%autosetup
#shebag ersetzen
find . -iname "bin/tryton" -exec sed -i "s/env python/%{mypython}/" '{}' \;