proteus 7.0.0__py3-none-any.whl → 7.2.0__py3-none-any.whl

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.

proteus/__init__.py CHANGED
@@ -10,7 +10,7 @@ from decimal import Decimal
10
10
 
11
11
  import proteus.config
12
12
 
13
- __version__ = "7.0.0"
13
+ __version__ = "7.2.0"
14
14
  __all__ = ['Model', 'Wizard', 'Report']
15
15
 
16
16
  _MODELS = threading.local()
@@ -1169,7 +1169,7 @@ class Model(object):
1169
1169
  later.add(field)
1170
1170
  continue
1171
1171
  to_change.add(field)
1172
- values.update(self._on_change_args(on_change_with))
1172
+ values.update(self._on_change_args(on_change_with + [field]))
1173
1173
  if to_change:
1174
1174
  context = self._context
1175
1175
  changes = getattr(self._proxy, 'on_change_with')(values,
@@ -1179,7 +1179,7 @@ class Model(object):
1179
1179
  values = {}
1180
1180
  for field in later:
1181
1181
  on_change_with = self._fields[field]['on_change_with']
1182
- values.update(self._on_change_args(on_change_with))
1182
+ values.update(self._on_change_args(on_change_with + [field]))
1183
1183
  context = self._context
1184
1184
  changes = getattr(self._proxy, 'on_change_with')(
1185
1185
  values, list(later), context)
proteus/config.py CHANGED
@@ -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.0
3
+ Version: 7.2.0
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: test
37
- Requires-Dist: trytond <7.1,>=7.0 ; extra == 'test'
38
- Requires-Dist: trytond-party <7.1,>=7.0 ; extra == 'test'
37
+ Requires-Dist: trytond <7.3,>=7.2 ; extra == 'test'
38
+ Requires-Dist: trytond-party <7.3,>=7.2 ; extra == 'test'
39
39
  Provides-Extra: trytond
40
- Requires-Dist: trytond <7.1,>=7.0 ; extra == 'trytond'
40
+ Requires-Dist: trytond <7.3,>=7.2 ; extra == 'trytond'
41
41
 
42
42
  =======================
43
43
  Tryton Scripting Client
@@ -0,0 +1,17 @@
1
+ proteus/__init__.py,sha256=sLDWH3nqZ4-V0O6XuoMMyumzpA4En4M6YOpc_EJF6MY,49431
2
+ proteus/config.py,sha256=IfH1s7Dhenga6tZXtntRX6zgKnwQpzf8NkTLr9Mvw_s,13493
3
+ proteus/pyson.py,sha256=R4K1oyt2EpbxfsnXEM7EEU-nWclgbQnOPo9tJHoyWQM,22081
4
+ proteus/tests/__init__.py,sha256=ntQJf_2grlorGbYPXySORFaXIlMhvSGhJ9rB2rrhE7g,366
5
+ proteus/tests/common.py,sha256=rrNCNEyXHLP1Qevs7dkHRkro931hQkMFmk012K-jzIo,454
6
+ proteus/tests/test_config.py,sha256=0c97M4kSP6YEcDunFn-4BAqRTTk077-Ee0dHSbTY4Rg,1484
7
+ proteus/tests/test_context.py,sha256=cDN-v7PgkYegYFNEJ9XfIc4T0eVFjOX-rgDWNV1SAlI,564
8
+ proteus/tests/test_model.py,sha256=zcZBFwDZ0kQVYEVBMulAK6tGk2fJzRvqwnGHHmfow88,12463
9
+ proteus/tests/test_readme.py,sha256=Uhm7QhQiia00qWGhQUqri7_-SYAyNSQfNv74sNb6ReQ,817
10
+ proteus/tests/test_report.py,sha256=OaDSNQIAyiDM_26glyZPSq2t7xzMDUto6h0EVXmAoZ0,793
11
+ proteus/tests/test_wizard.py,sha256=vxEhnE578KBxu5ls-rcMA_m8lRUZF8A-vItxWiGsa_I,2150
12
+ proteus-7.2.0.dist-info/LICENSE,sha256=LVyRoc66HRMBoJdRqIQRlJtpzzrgb4eBWrlJwhcC9fc,42788
13
+ proteus-7.2.0.dist-info/METADATA,sha256=jZypzeiNU6ldw-j-FUUXSLqChQZR0g9IqaKcPntslUQ,5805
14
+ proteus-7.2.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
15
+ proteus-7.2.0.dist-info/top_level.txt,sha256=7LjMNpvlVFgsEJnTt9d28ZE5oRrsViu9ZyORIWB9QeQ,8
16
+ proteus-7.2.0.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
17
+ proteus-7.2.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.2)
2
+ Generator: bdist_wheel (0.43.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,17 +0,0 @@
1
- proteus/__init__.py,sha256=wX_mhkwR3yEVWCh81HqFVJU7zLM32OwwZThThQ0jTM8,49411
2
- proteus/config.py,sha256=5ho8EOC8YA_cFneZ5wPo4p241fprYW3BfcmDG1wKFxg,13340
3
- proteus/pyson.py,sha256=R4K1oyt2EpbxfsnXEM7EEU-nWclgbQnOPo9tJHoyWQM,22081
4
- proteus/tests/__init__.py,sha256=ntQJf_2grlorGbYPXySORFaXIlMhvSGhJ9rB2rrhE7g,366
5
- proteus/tests/common.py,sha256=rrNCNEyXHLP1Qevs7dkHRkro931hQkMFmk012K-jzIo,454
6
- proteus/tests/test_config.py,sha256=0c97M4kSP6YEcDunFn-4BAqRTTk077-Ee0dHSbTY4Rg,1484
7
- proteus/tests/test_context.py,sha256=cDN-v7PgkYegYFNEJ9XfIc4T0eVFjOX-rgDWNV1SAlI,564
8
- proteus/tests/test_model.py,sha256=mz1DwvCGrdZS1TJg3vFSrLNF_b5e2XY96wzrUglzH_4,12536
9
- proteus/tests/test_readme.py,sha256=5Qr58eFjuLYzj-U9FiNG8VXplKUP31DXkPf79vE2UOc,800
10
- proteus/tests/test_report.py,sha256=OaDSNQIAyiDM_26glyZPSq2t7xzMDUto6h0EVXmAoZ0,793
11
- proteus/tests/test_wizard.py,sha256=vxEhnE578KBxu5ls-rcMA_m8lRUZF8A-vItxWiGsa_I,2150
12
- proteus-7.0.0.dist-info/LICENSE,sha256=LVyRoc66HRMBoJdRqIQRlJtpzzrgb4eBWrlJwhcC9fc,42788
13
- proteus-7.0.0.dist-info/METADATA,sha256=Au1YOEA1RMbmiqIBUGHC-5GMTonz6CFawR9Ef_eA9ZY,5783
14
- proteus-7.0.0.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
15
- proteus-7.0.0.dist-info/top_level.txt,sha256=7LjMNpvlVFgsEJnTt9d28ZE5oRrsViu9ZyORIWB9QeQ,8
16
- proteus-7.0.0.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
17
- proteus-7.0.0.dist-info/RECORD,,