proteus 7.0.1__tar.gz → 7.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of proteus might be problematic. Click here for more details.

Files changed (32) hide show
  1. {proteus-7.0.1 → proteus-7.2.1}/CHANGELOG +6 -1
  2. {proteus-7.0.1 → proteus-7.2.1}/COPYRIGHT +2 -2
  3. {proteus-7.0.1 → proteus-7.2.1}/PKG-INFO +6 -6
  4. {proteus-7.0.1 → proteus-7.2.1}/doc/conf.py +2 -3
  5. {proteus-7.0.1 → proteus-7.2.1}/proteus/__init__.py +5 -1
  6. {proteus-7.0.1 → proteus-7.2.1}/proteus/config.py +3 -0
  7. {proteus-7.0.1 → proteus-7.2.1}/proteus/tests/test_model.py +1 -2
  8. {proteus-7.0.1 → proteus-7.2.1}/proteus/tests/test_readme.py +1 -0
  9. {proteus-7.0.1 → proteus-7.2.1}/proteus.egg-info/PKG-INFO +6 -6
  10. {proteus-7.0.1 → proteus-7.2.1}/proteus.egg-info/SOURCES.txt +0 -1
  11. proteus-7.2.1/proteus.egg-info/requires.txt +9 -0
  12. {proteus-7.0.1 → proteus-7.2.1}/setup.py +1 -1
  13. proteus-7.0.1/.readthedocs.yaml +0 -10
  14. proteus-7.0.1/proteus.egg-info/requires.txt +0 -9
  15. {proteus-7.0.1 → proteus-7.2.1}/LICENSE +0 -0
  16. {proteus-7.0.1 → proteus-7.2.1}/MANIFEST.in +0 -0
  17. {proteus-7.0.1 → proteus-7.2.1}/README.rst +0 -0
  18. {proteus-7.0.1 → proteus-7.2.1}/doc/index.rst +0 -0
  19. {proteus-7.0.1 → proteus-7.2.1}/doc/releases.rst +0 -0
  20. {proteus-7.0.1 → proteus-7.2.1}/doc/requirements-doc.txt +0 -0
  21. {proteus-7.0.1 → proteus-7.2.1}/proteus/pyson.py +0 -0
  22. {proteus-7.0.1 → proteus-7.2.1}/proteus/tests/__init__.py +0 -0
  23. {proteus-7.0.1 → proteus-7.2.1}/proteus/tests/common.py +0 -0
  24. {proteus-7.0.1 → proteus-7.2.1}/proteus/tests/test_config.py +0 -0
  25. {proteus-7.0.1 → proteus-7.2.1}/proteus/tests/test_context.py +0 -0
  26. {proteus-7.0.1 → proteus-7.2.1}/proteus/tests/test_report.py +0 -0
  27. {proteus-7.0.1 → proteus-7.2.1}/proteus/tests/test_wizard.py +0 -0
  28. {proteus-7.0.1 → proteus-7.2.1}/proteus.egg-info/dependency_links.txt +0 -0
  29. {proteus-7.0.1 → proteus-7.2.1}/proteus.egg-info/top_level.txt +0 -0
  30. {proteus-7.0.1 → proteus-7.2.1}/proteus.egg-info/zip-safe +0 -0
  31. {proteus-7.0.1 → proteus-7.2.1}/setup.cfg +0 -0
  32. {proteus-7.0.1 → proteus-7.2.1}/tox.ini +0 -0
@@ -1,9 +1,14 @@
1
1
 
2
- Version 7.0.1 - 2024-01-01
2
+ Version 7.2.1 - 2025-01-01
3
3
  --------------------------
4
4
  * Bug fixes (see mercurial logs for details)
5
5
 
6
6
 
7
+ Version 7.2.0 - 2024-04-29
8
+ --------------------------
9
+ * Bug fixes (see mercurial logs for details)
10
+ * Add skip warning on trytond configuration
11
+
7
12
  Version 7.0.0 - 2023-10-30
8
13
  --------------------------
9
14
  * Bug fixes (see mercurial logs for details)
@@ -1,5 +1,5 @@
1
- Copyright (C) 2010-2023 Cédric Krier.
2
- Copyright (C) 2010-2023 B2CK SPRL.
1
+ Copyright (C) 2010-2024 Cédric Krier.
2
+ Copyright (C) 2010-2024 B2CK SPRL.
3
3
 
4
4
  This program is free software: you can redistribute it and/or modify
5
5
  it under the terms of the GNU Lesser General Public License as published by
@@ -1,14 +1,14 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: proteus
3
- Version: 7.0.1
3
+ Version: 7.2.1
4
4
  Summary: Library to access Tryton server as a client
5
5
  Home-page: http://www.tryton.org/
6
- Download-URL: http://downloads.tryton.org/7.0/
6
+ Download-URL: http://downloads.tryton.org/7.2/
7
7
  Author: Tryton
8
8
  Author-email: foundation@tryton.org
9
9
  License: LGPL-3
10
10
  Project-URL: Bug Tracker, https://bugs.tryton.org/
11
- Project-URL: Documentation, https://docs.tryton.org/
11
+ Project-URL: Documentation, https://docs.tryton.org/latest/client-library/
12
12
  Project-URL: Forum, https://www.tryton.org/forum
13
13
  Project-URL: Source Code, https://code.tryton.org/tryton
14
14
  Keywords: tryton library cli
@@ -34,10 +34,10 @@ License-File: LICENSE
34
34
  Requires-Dist: defusedxml
35
35
  Requires-Dist: python-dateutil
36
36
  Provides-Extra: trytond
37
- Requires-Dist: trytond<7.1,>=7.0; extra == "trytond"
37
+ Requires-Dist: trytond<7.3,>=7.2; extra == "trytond"
38
38
  Provides-Extra: test
39
- Requires-Dist: trytond<7.1,>=7.0; extra == "test"
40
- Requires-Dist: trytond_party<7.1,>=7.0; extra == "test"
39
+ Requires-Dist: trytond<7.3,>=7.2; extra == "test"
40
+ Requires-Dist: trytond_party<7.3,>=7.2; extra == "test"
41
41
 
42
42
  =======================
43
43
  Tryton Scripting Client
@@ -8,9 +8,8 @@ if base_url:
8
8
  modules_url = base_url + '/modules-{module}/'
9
9
  trytond_url = base_url + '/server/'
10
10
  else:
11
- modules_url = (
12
- 'https://docs.tryton.org/projects/modules-{module}/en/{series}/')
13
- trytond_url = 'https://docs.tryton.org/projects/server/en/{series}/'
11
+ modules_url = 'https://docs.tryton.org/${series}/modules-{module}/'
12
+ trytond_url = 'https://docs.tryton.org/${series}/server/'
14
13
 
15
14
 
16
15
  def get_info():
@@ -10,7 +10,7 @@ from decimal import Decimal
10
10
 
11
11
  import proteus.config
12
12
 
13
- __version__ = "7.0.1"
13
+ __version__ = "7.2.1"
14
14
  __all__ = ['Model', 'Wizard', 'Report']
15
15
 
16
16
  _MODELS = threading.local()
@@ -925,6 +925,7 @@ class Model(object):
925
925
  else:
926
926
  record, = records
927
927
  values = record._on_change_args(change)
928
+ values['id'] = record.id
928
929
  changes = getattr(proxy, button)(values, context)
929
930
  record._set_on_change(changes)
930
931
 
@@ -1151,6 +1152,7 @@ class Model(object):
1151
1152
  on_change)
1152
1153
  values.update(self._on_change_args(on_change))
1153
1154
  if values:
1155
+ values['id'] = self.id
1154
1156
  context = self._context
1155
1157
  change = getattr(self._proxy, 'on_change')(values, names, context)
1156
1158
  self._set_on_change(change)
@@ -1171,6 +1173,7 @@ class Model(object):
1171
1173
  to_change.add(field)
1172
1174
  values.update(self._on_change_args(on_change_with + [field]))
1173
1175
  if to_change:
1176
+ values['id'] = self.id
1174
1177
  context = self._context
1175
1178
  changes = getattr(self._proxy, 'on_change_with')(values,
1176
1179
  list(to_change), context)
@@ -1180,6 +1183,7 @@ class Model(object):
1180
1183
  for field in later:
1181
1184
  on_change_with = self._fields[field]['on_change_with']
1182
1185
  values.update(self._on_change_args(on_change_with + [field]))
1186
+ values['id'] = self.id
1183
1187
  context = self._context
1184
1188
  changes = getattr(self._proxy, 'on_change_with')(
1185
1189
  values, list(later), context)
@@ -202,6 +202,8 @@ class _TrytondMethod(object):
202
202
  (c_args, c_kwargs,
203
203
  transaction.context, transaction.timestamp) \
204
204
  = rpc.convert(self._object, *args, **kwargs)
205
+ if self._config.skip_warning:
206
+ transaction.context['_skip_warnings'] = True
205
207
  meth = getattr(self._object, self._name)
206
208
  if (rpc.instantiate is None
207
209
  or not is_instance_method(
@@ -276,6 +278,7 @@ class TrytondConfig(Config):
276
278
  self.database_name = database_name
277
279
  self._user = user
278
280
  self.config_file = config_file
281
+ self.skip_warning = False
279
282
 
280
283
  Pool.start()
281
284
  self.pool = Pool(database_name)
@@ -196,9 +196,8 @@ class TestModel(ProteusTestCase):
196
196
  group.save()
197
197
 
198
198
  ModelAccess = Model.get('ir.model.access')
199
- Model_ = Model.get('ir.model')
200
199
  model_access = ModelAccess()
201
- model_access.model = Model_.find([('model', '=', 'res.group')])[0]
200
+ model_access.model = 'res.group'
202
201
  model_access.perm_read = True
203
202
  model_access.perm_write = True
204
203
  model_access.perm_create = True
@@ -20,3 +20,4 @@ def load_tests(loader, tests, pattern):
20
20
  setUp=doctest_setup, tearDown=doctest_teardown,
21
21
  encoding='utf-8',
22
22
  optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
23
+ return tests
@@ -1,14 +1,14 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: proteus
3
- Version: 7.0.1
3
+ Version: 7.2.1
4
4
  Summary: Library to access Tryton server as a client
5
5
  Home-page: http://www.tryton.org/
6
- Download-URL: http://downloads.tryton.org/7.0/
6
+ Download-URL: http://downloads.tryton.org/7.2/
7
7
  Author: Tryton
8
8
  Author-email: foundation@tryton.org
9
9
  License: LGPL-3
10
10
  Project-URL: Bug Tracker, https://bugs.tryton.org/
11
- Project-URL: Documentation, https://docs.tryton.org/
11
+ Project-URL: Documentation, https://docs.tryton.org/latest/client-library/
12
12
  Project-URL: Forum, https://www.tryton.org/forum
13
13
  Project-URL: Source Code, https://code.tryton.org/tryton
14
14
  Keywords: tryton library cli
@@ -34,10 +34,10 @@ License-File: LICENSE
34
34
  Requires-Dist: defusedxml
35
35
  Requires-Dist: python-dateutil
36
36
  Provides-Extra: trytond
37
- Requires-Dist: trytond<7.1,>=7.0; extra == "trytond"
37
+ Requires-Dist: trytond<7.3,>=7.2; extra == "trytond"
38
38
  Provides-Extra: test
39
- Requires-Dist: trytond<7.1,>=7.0; extra == "test"
40
- Requires-Dist: trytond_party<7.1,>=7.0; extra == "test"
39
+ Requires-Dist: trytond<7.3,>=7.2; extra == "test"
40
+ Requires-Dist: trytond_party<7.3,>=7.2; extra == "test"
41
41
 
42
42
  =======================
43
43
  Tryton Scripting Client
@@ -1,4 +1,3 @@
1
- .readthedocs.yaml
2
1
  CHANGELOG
3
2
  COPYRIGHT
4
3
  LICENSE
@@ -0,0 +1,9 @@
1
+ defusedxml
2
+ python-dateutil
3
+
4
+ [test]
5
+ trytond<7.3,>=7.2
6
+ trytond_party<7.3,>=7.2
7
+
8
+ [trytond]
9
+ trytond<7.3,>=7.2
@@ -55,7 +55,7 @@ setup(name=name,
55
55
  download_url=download_url,
56
56
  project_urls={
57
57
  "Bug Tracker": 'https://bugs.tryton.org/',
58
- "Documentation": 'https://docs.tryton.org/',
58
+ "Documentation": 'https://docs.tryton.org/latest/client-library/',
59
59
  "Forum": 'https://www.tryton.org/forum',
60
60
  "Source Code": 'https://code.tryton.org/tryton',
61
61
  },
@@ -1,10 +0,0 @@
1
- version: 2
2
- build:
3
- os: ubuntu-22.04
4
- tools:
5
- python: "3"
6
- python:
7
- install:
8
- - requirements: proteus/doc/requirements-doc.txt
9
- sphinx:
10
- configuration: proteus/doc/conf.py
@@ -1,9 +0,0 @@
1
- defusedxml
2
- python-dateutil
3
-
4
- [test]
5
- trytond<7.1,>=7.0
6
- trytond_party<7.1,>=7.0
7
-
8
- [trytond]
9
- trytond<7.1,>=7.0
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes