proteus 7.2.1__tar.gz → 7.4.0__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.
- {proteus-7.2.1 → proteus-7.4.0}/CHANGELOG +1 -1
- {proteus-7.2.1/proteus.egg-info → proteus-7.4.0}/PKG-INFO +5 -5
- {proteus-7.2.1 → proteus-7.4.0}/doc/conf.py +2 -2
- {proteus-7.2.1 → proteus-7.4.0}/proteus/__init__.py +1 -5
- {proteus-7.2.1 → proteus-7.4.0}/proteus/pyson.py +2 -1
- {proteus-7.2.1 → proteus-7.4.0/proteus.egg-info}/PKG-INFO +5 -5
- proteus-7.4.0/proteus.egg-info/requires.txt +9 -0
- proteus-7.2.1/proteus.egg-info/requires.txt +0 -9
- {proteus-7.2.1 → proteus-7.4.0}/COPYRIGHT +0 -0
- {proteus-7.2.1 → proteus-7.4.0}/LICENSE +0 -0
- {proteus-7.2.1 → proteus-7.4.0}/MANIFEST.in +0 -0
- {proteus-7.2.1 → proteus-7.4.0}/README.rst +0 -0
- {proteus-7.2.1 → proteus-7.4.0}/doc/index.rst +0 -0
- {proteus-7.2.1 → proteus-7.4.0}/doc/releases.rst +0 -0
- {proteus-7.2.1 → proteus-7.4.0}/doc/requirements-doc.txt +0 -0
- {proteus-7.2.1 → proteus-7.4.0}/proteus/config.py +0 -0
- {proteus-7.2.1 → proteus-7.4.0}/proteus/tests/__init__.py +0 -0
- {proteus-7.2.1 → proteus-7.4.0}/proteus/tests/common.py +0 -0
- {proteus-7.2.1 → proteus-7.4.0}/proteus/tests/test_config.py +0 -0
- {proteus-7.2.1 → proteus-7.4.0}/proteus/tests/test_context.py +0 -0
- {proteus-7.2.1 → proteus-7.4.0}/proteus/tests/test_model.py +0 -0
- {proteus-7.2.1 → proteus-7.4.0}/proteus/tests/test_readme.py +0 -0
- {proteus-7.2.1 → proteus-7.4.0}/proteus/tests/test_report.py +0 -0
- {proteus-7.2.1 → proteus-7.4.0}/proteus/tests/test_wizard.py +0 -0
- {proteus-7.2.1 → proteus-7.4.0}/proteus.egg-info/SOURCES.txt +0 -0
- {proteus-7.2.1 → proteus-7.4.0}/proteus.egg-info/dependency_links.txt +0 -0
- {proteus-7.2.1 → proteus-7.4.0}/proteus.egg-info/top_level.txt +0 -0
- {proteus-7.2.1 → proteus-7.4.0}/proteus.egg-info/zip-safe +0 -0
- {proteus-7.2.1 → proteus-7.4.0}/setup.cfg +0 -0
- {proteus-7.2.1 → proteus-7.4.0}/setup.py +0 -0
- {proteus-7.2.1 → proteus-7.4.0}/tox.ini +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: proteus
|
|
3
|
-
Version: 7.
|
|
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.
|
|
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
|
|
@@ -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.
|
|
37
|
+
Requires-Dist: trytond<7.5,>=7.4; extra == "trytond"
|
|
38
38
|
Provides-Extra: test
|
|
39
|
-
Requires-Dist: trytond<7.
|
|
40
|
-
Requires-Dist: trytond_party<7.
|
|
39
|
+
Requires-Dist: trytond<7.5,>=7.4; extra == "test"
|
|
40
|
+
Requires-Dist: trytond_party<7.5,>=7.4; extra == "test"
|
|
41
41
|
|
|
42
42
|
=======================
|
|
43
43
|
Tryton Scripting Client
|
|
@@ -8,8 +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 = 'https://docs.tryton.org
|
|
12
|
-
trytond_url = 'https://docs.tryton.org
|
|
11
|
+
modules_url = 'https://docs.tryton.org/{series}/modules-{module}/'
|
|
12
|
+
trytond_url = 'https://docs.tryton.org/{series}/server/'
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
def get_info():
|
|
@@ -10,7 +10,7 @@ from decimal import Decimal
|
|
|
10
10
|
|
|
11
11
|
import proteus.config
|
|
12
12
|
|
|
13
|
-
__version__ = "7.
|
|
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)
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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
|
|
@@ -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.
|
|
37
|
+
Requires-Dist: trytond<7.5,>=7.4; extra == "trytond"
|
|
38
38
|
Provides-Extra: test
|
|
39
|
-
Requires-Dist: trytond<7.
|
|
40
|
-
Requires-Dist: trytond_party<7.
|
|
39
|
+
Requires-Dist: trytond<7.5,>=7.4; extra == "test"
|
|
40
|
+
Requires-Dist: trytond_party<7.5,>=7.4; extra == "test"
|
|
41
41
|
|
|
42
42
|
=======================
|
|
43
43
|
Tryton Scripting Client
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|