proteus 7.2.1__py3-none-any.whl → 7.4.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.2.1"
13
+ __version__ = "7.4.0"
14
14
  __all__ = ['Model', 'Wizard', 'Report']
15
15
 
16
16
  _MODELS = threading.local()
@@ -925,7 +925,6 @@ class Model(object):
925
925
  else:
926
926
  record, = records
927
927
  values = record._on_change_args(change)
928
- values['id'] = record.id
929
928
  changes = getattr(proxy, button)(values, context)
930
929
  record._set_on_change(changes)
931
930
 
@@ -1152,7 +1151,6 @@ class Model(object):
1152
1151
  on_change)
1153
1152
  values.update(self._on_change_args(on_change))
1154
1153
  if values:
1155
- values['id'] = self.id
1156
1154
  context = self._context
1157
1155
  change = getattr(self._proxy, 'on_change')(values, names, context)
1158
1156
  self._set_on_change(change)
@@ -1173,7 +1171,6 @@ class Model(object):
1173
1171
  to_change.add(field)
1174
1172
  values.update(self._on_change_args(on_change_with + [field]))
1175
1173
  if to_change:
1176
- values['id'] = self.id
1177
1174
  context = self._context
1178
1175
  changes = getattr(self._proxy, 'on_change_with')(values,
1179
1176
  list(to_change), context)
@@ -1183,7 +1180,6 @@ class Model(object):
1183
1180
  for field in later:
1184
1181
  on_change_with = self._fields[field]['on_change_with']
1185
1182
  values.update(self._on_change_args(on_change_with + [field]))
1186
- values['id'] = self.id
1187
1183
  context = self._context
1188
1184
  changes = getattr(self._proxy, 'on_change_with')(
1189
1185
  values, list(later), context)
proteus/pyson.py CHANGED
@@ -662,7 +662,8 @@ class DateTime(Date):
662
662
  and not isinstance(now, datetime.datetime)):
663
663
  now = datetime.datetime.combine(now, datetime.time())
664
664
  if not isinstance(now, datetime.datetime):
665
- now = datetime.datetime.utcnow()
665
+ now = datetime.datetime.now(
666
+ datetime.timezone.utc).replace(tzinfo=None)
666
667
  return now + relativedelta(
667
668
  year=dct['y'],
668
669
  month=dct['M'],
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: proteus
3
- Version: 7.2.1
3
+ Version: 7.4.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.2/
6
+ Download-URL: http://downloads.tryton.org/7.4/
7
7
  Author: Tryton
8
8
  Author-email: foundation@tryton.org
9
9
  License: LGPL-3
@@ -33,11 +33,11 @@ Requires-Python: >=3.8
33
33
  License-File: LICENSE
34
34
  Requires-Dist: defusedxml
35
35
  Requires-Dist: python-dateutil
36
- Provides-Extra: trytond
37
- Requires-Dist: trytond<7.3,>=7.2; extra == "trytond"
38
36
  Provides-Extra: test
39
- Requires-Dist: trytond<7.3,>=7.2; extra == "test"
40
- Requires-Dist: trytond_party<7.3,>=7.2; extra == "test"
37
+ Requires-Dist: trytond<7.5,>=7.4; extra == "test"
38
+ Requires-Dist: trytond-party<7.5,>=7.4; extra == "test"
39
+ Provides-Extra: trytond
40
+ Requires-Dist: trytond<7.5,>=7.4; extra == "trytond"
41
41
 
42
42
  =======================
43
43
  Tryton Scripting Client
@@ -1,6 +1,6 @@
1
- proteus/__init__.py,sha256=ArkZx6V3vQ0hlsnejgtXhA8Py-lpIpuLWYba0tPlxEo,49573
1
+ proteus/__init__.py,sha256=I0YOqqiYZxcAEc8nqUcWIJl2djJNFrlPq1vP4kfIfCA,49431
2
2
  proteus/config.py,sha256=IfH1s7Dhenga6tZXtntRX6zgKnwQpzf8NkTLr9Mvw_s,13493
3
- proteus/pyson.py,sha256=R4K1oyt2EpbxfsnXEM7EEU-nWclgbQnOPo9tJHoyWQM,22081
3
+ proteus/pyson.py,sha256=SJWnzaugE1yfEvIkdPqCe3BST-g3nc3_56g7sDKbQcE,22137
4
4
  proteus/tests/__init__.py,sha256=ntQJf_2grlorGbYPXySORFaXIlMhvSGhJ9rB2rrhE7g,366
5
5
  proteus/tests/common.py,sha256=rrNCNEyXHLP1Qevs7dkHRkro931hQkMFmk012K-jzIo,454
6
6
  proteus/tests/test_config.py,sha256=0c97M4kSP6YEcDunFn-4BAqRTTk077-Ee0dHSbTY4Rg,1484
@@ -9,9 +9,9 @@ proteus/tests/test_model.py,sha256=zcZBFwDZ0kQVYEVBMulAK6tGk2fJzRvqwnGHHmfow88,1
9
9
  proteus/tests/test_readme.py,sha256=Uhm7QhQiia00qWGhQUqri7_-SYAyNSQfNv74sNb6ReQ,817
10
10
  proteus/tests/test_report.py,sha256=OaDSNQIAyiDM_26glyZPSq2t7xzMDUto6h0EVXmAoZ0,793
11
11
  proteus/tests/test_wizard.py,sha256=vxEhnE578KBxu5ls-rcMA_m8lRUZF8A-vItxWiGsa_I,2150
12
- proteus-7.2.1.dist-info/LICENSE,sha256=LVyRoc66HRMBoJdRqIQRlJtpzzrgb4eBWrlJwhcC9fc,42788
13
- proteus-7.2.1.dist-info/METADATA,sha256=3TT5jvI23BIv0PSY43oHFUL_EMgcRQ1-1uxNb2YXywM,5799
14
- proteus-7.2.1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
15
- proteus-7.2.1.dist-info/top_level.txt,sha256=7LjMNpvlVFgsEJnTt9d28ZE5oRrsViu9ZyORIWB9QeQ,8
16
- proteus-7.2.1.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
17
- proteus-7.2.1.dist-info/RECORD,,
12
+ proteus-7.4.0.dist-info/LICENSE,sha256=LVyRoc66HRMBoJdRqIQRlJtpzzrgb4eBWrlJwhcC9fc,42788
13
+ proteus-7.4.0.dist-info/METADATA,sha256=WN50yChTNuhFgiayze1fa72Auza_jSPdtjW-tcWiiAY,5799
14
+ proteus-7.4.0.dist-info/WHEEL,sha256=pL8R0wFFS65tNSRnaOVrsw9EOkOqxLrlUPenUYnJKNo,91
15
+ proteus-7.4.0.dist-info/top_level.txt,sha256=7LjMNpvlVFgsEJnTt9d28ZE5oRrsViu9ZyORIWB9QeQ,8
16
+ proteus-7.4.0.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
17
+ proteus-7.4.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.6.0)
2
+ Generator: setuptools (74.1.3)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5