rt 3.0.4__tar.gz → 3.0.6__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.
- {rt-3.0.4 → rt-3.0.6}/CHANGELOG.md +8 -0
- {rt-3.0.4 → rt-3.0.6}/PKG-INFO +1 -1
- {rt-3.0.4 → rt-3.0.6}/rt/rest1.py +3 -3
- {rt-3.0.4 → rt-3.0.6}/rt/rest2.py +2 -2
- {rt-3.0.4 → rt-3.0.6}/rt.egg-info/PKG-INFO +1 -1
- {rt-3.0.4 → rt-3.0.6}/.editorconfig +0 -0
- {rt-3.0.4 → rt-3.0.6}/.flake8 +0 -0
- {rt-3.0.4 → rt-3.0.6}/.pylintrc +0 -0
- {rt-3.0.4 → rt-3.0.6}/AUTHORS +0 -0
- {rt-3.0.4 → rt-3.0.6}/LICENSE +0 -0
- {rt-3.0.4 → rt-3.0.6}/MANIFEST.in +0 -0
- {rt-3.0.4 → rt-3.0.6}/README.rst +0 -0
- {rt-3.0.4 → rt-3.0.6}/doc/Makefile +0 -0
- {rt-3.0.4 → rt-3.0.6}/doc/changelog.rst +0 -0
- {rt-3.0.4 → rt-3.0.6}/doc/conf.py +0 -0
- {rt-3.0.4 → rt-3.0.6}/doc/exceptions.rst +0 -0
- {rt-3.0.4 → rt-3.0.6}/doc/glossary.rst +0 -0
- {rt-3.0.4 → rt-3.0.6}/doc/index.rst +0 -0
- {rt-3.0.4 → rt-3.0.6}/doc/rest1.rst +0 -0
- {rt-3.0.4 → rt-3.0.6}/doc/rest2.rst +0 -0
- {rt-3.0.4 → rt-3.0.6}/doc/usage.rst +0 -0
- {rt-3.0.4 → rt-3.0.6}/pyproject.toml +0 -0
- {rt-3.0.4 → rt-3.0.6}/rt/__init__.py +0 -0
- {rt-3.0.4 → rt-3.0.6}/rt/exceptions.py +0 -0
- {rt-3.0.4 → rt-3.0.6}/rt/py.typed +0 -0
- {rt-3.0.4 → rt-3.0.6}/rt.egg-info/SOURCES.txt +0 -0
- {rt-3.0.4 → rt-3.0.6}/rt.egg-info/dependency_links.txt +0 -0
- {rt-3.0.4 → rt-3.0.6}/rt.egg-info/requires.txt +0 -0
- {rt-3.0.4 → rt-3.0.6}/rt.egg-info/top_level.txt +0 -0
- {rt-3.0.4 → rt-3.0.6}/setup.cfg +0 -0
- {rt-3.0.4 → rt-3.0.6}/setup.py +0 -0
- {rt-3.0.4 → rt-3.0.6}/tests/__init__.py +0 -0
- {rt-3.0.4 → rt-3.0.6}/tests/conftest.py +0 -0
- {rt-3.0.4 → rt-3.0.6}/tests/test_basic.py +0 -0
- {rt-3.0.4 → rt-3.0.6}/tests/test_rest1.py +0 -0
- {rt-3.0.4 → rt-3.0.6}/tests/test_tickets.py +0 -0
|
@@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file.
|
|
|
3
3
|
|
|
4
4
|
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
5
5
|
|
|
6
|
+
## [v3.0.6], 2023-06-21
|
|
7
|
+
### Added
|
|
8
|
+
- Fixed bug in rest1 (#86)
|
|
9
|
+
|
|
10
|
+
## [v3.0.5], 2023-02-02
|
|
11
|
+
### Added
|
|
12
|
+
- Added support for specifying custom fields on user creation/edit (#82).
|
|
13
|
+
|
|
6
14
|
## [v3.0.4], 2022-11-08
|
|
7
15
|
### Fixes
|
|
8
16
|
- Workaround for parsing issues with tickets with only 1 attachment (#80), due to probably an upstream bug.
|
{rt-3.0.4 → rt-3.0.6}/PKG-INFO
RENAMED
|
@@ -268,7 +268,7 @@ class Rt:
|
|
|
268
268
|
if self.RE_PATTERNS['syntax_error_pattern'].match(msg[0]):
|
|
269
269
|
raise APISyntaxError(msg[2][2:] if len(msg) > 2 else 'Syntax error.')
|
|
270
270
|
if self.RE_PATTERNS['bad_request_pattern'].match(msg[0]):
|
|
271
|
-
raise BadRequestError(msg[
|
|
271
|
+
raise BadRequestError(msg[2] if len(msg) > 2 else 'Bad request.')
|
|
272
272
|
|
|
273
273
|
@staticmethod
|
|
274
274
|
def __normalize_list(msg: typing.Union[str, typing.Sequence[str]]) -> typing.Sequence[str]:
|
|
@@ -423,8 +423,8 @@ class Rt:
|
|
|
423
423
|
# we will not raise the error but just return False to indicate
|
|
424
424
|
# invalid credentials
|
|
425
425
|
return False
|
|
426
|
-
|
|
427
|
-
|
|
426
|
+
|
|
427
|
+
return bool(self.login_result)
|
|
428
428
|
|
|
429
429
|
def logout(self) -> bool:
|
|
430
430
|
""" Logout of user.
|
|
@@ -979,7 +979,7 @@ class Rt:
|
|
|
979
979
|
'MobilePhone', 'PagerPhone', 'ContactInfo', 'Comments',
|
|
980
980
|
'Signature', 'Lang', 'EmailEncoding', 'WebEncoding',
|
|
981
981
|
'ExternalContactInfoId', 'ContactInfoSystem', 'ExternalAuthId',
|
|
982
|
-
'AuthSystem', 'Privileged', 'Disabled'}
|
|
982
|
+
'AuthSystem', 'Privileged', 'Disabled', 'CustomFields'}
|
|
983
983
|
invalid_fields = []
|
|
984
984
|
|
|
985
985
|
post_data = {'Name': user_name,
|
|
@@ -1057,7 +1057,7 @@ class Rt:
|
|
|
1057
1057
|
'MobilePhone', 'PagerPhone', 'ContactInfo', 'Comments',
|
|
1058
1058
|
'Signature', 'Lang', 'EmailEncoding', 'WebEncoding',
|
|
1059
1059
|
'ExternalContactInfoId', 'ContactInfoSystem', 'ExternalAuthId',
|
|
1060
|
-
'AuthSystem', 'Privileged', 'Disabled'}
|
|
1060
|
+
'AuthSystem', 'Privileged', 'Disabled', 'CustomFields'}
|
|
1061
1061
|
invalid_fields = []
|
|
1062
1062
|
|
|
1063
1063
|
post_data = {}
|
|
File without changes
|
{rt-3.0.4 → rt-3.0.6}/.flake8
RENAMED
|
File without changes
|
{rt-3.0.4 → rt-3.0.6}/.pylintrc
RENAMED
|
File without changes
|
{rt-3.0.4 → rt-3.0.6}/AUTHORS
RENAMED
|
File without changes
|
{rt-3.0.4 → rt-3.0.6}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|
{rt-3.0.4 → rt-3.0.6}/README.rst
RENAMED
|
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
|
{rt-3.0.4 → rt-3.0.6}/setup.cfg
RENAMED
|
File without changes
|
{rt-3.0.4 → rt-3.0.6}/setup.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|